language: rust
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly

sudo: required

install:
  - wget -qO- http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz | tar xvz
  - sudo cp -fR cmake-3.1.0-Linux-x86_64/* /usr

script:
  - cmake .
  - make
  - sudo make install
  - cd lcm-rust/lcm
  - cargo build --verbose
  - cargo test --verbose
  -  cd ../lcm-gen
  - cargo build --verbose
  - cargo test --verbose

language: rust
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly

sudo: required

install:
  - wget -qO- http://www.cmake.org/files/v3.1/cmake-3.1.0-Linux-x86_64.tar.gz | tar xvz
  - sudo cp -fR cmake-3.1.0-Linux-x86_64/* /usr

script:
  - cmake .
  - make
  - sudo make install
  - export LD_LIBRARY_PATH="$(pwd)/lcm:$(LD_LIBRARY_PATH)"
  - export LIBRARY_PATH="$(pwd)/lcm:$(LIBRARY_PATH)"
  - cd lcm-rust/lcm
  - cargo build --verbose
  - cargo test --verbose
  -  cd ../lcm-gen
  - cargo build --verbose
  - cargo test --verbose

Add hack to get rust-lcm to link
Add hack to get rust-lcm to link

`make install` allows it to compile but not run for some reason.