vulkano/.travis.yml
2016-04-23 11:31:05 +02:00

35 lines
1.0 KiB
YAML

language: rust
rust:
- nightly
- stable
install:
- export CXX="g++-4.8"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports # recent version of cmake
packages:
- gcc-4.8
- g++-4.8 # required to compile glslang
- clang
- cmake
- cmake-data
script:
- cargo test -v --manifest-path glsl-to-spirv/Cargo.toml
- cargo test -v --manifest-path vulkano-shaders/Cargo.toml
# We run the main build with `-j 1` or we have a chance to reach travis' memory limit
- cargo test --lib --no-run -j 1 -v --manifest-path vulkano/Cargo.toml # TODO: remove `--lib` when it works
after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc --manifest-path vulkano/Cargo.toml &&
git clone https://github.com/davisp/ghp-import &&
./ghp-import/ghp_import.py vulkano/target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages