language: rust
rust:
- stable
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- gcc-6
- g++-6
- libc++-dev
- libc++abi-dev
script:
# Link gcc-6 and g++-6 to their standard commands
- ln -s /usr/bin/gcc-6 /usr/local/bin/gcc
- ln -s /usr/bin/g++-6 /usr/local/bin/g++
# Export CC and CXX to tell cmake which compiler to use
- export CC=/usr/bin/gcc-6
- export CXX=/usr/bin/g++-6
# Check versions of gcc, g++
- gcc -v && g++ -v
- cargo build --release
- cargo test --release
cache: cargo
before_cache:
- chmod -R a+r $HOME/.cargo
branches:
only:
- master