vulkano/.travis.yml

60 lines
2.0 KiB
YAML
Raw Normal View History

2016-02-05 13:33:36 +00:00
language: rust
rust:
- nightly
- stable
cache:
cargo
2017-06-21 10:43:39 +00:00
2016-02-19 15:56:40 +00:00
install:
- export CXX="g++-4.8"
2016-02-18 10:30:11 +00:00
addons:
apt:
2016-02-19 15:53:57 +00:00
sources:
- ubuntu-toolchain-r-test
2016-04-12 11:46:09 +00:00
- george-edison55-precise-backports # recent version of cmake
2016-02-18 10:30:11 +00:00
packages:
2016-02-19 15:53:57 +00:00
- gcc-4.8
2016-02-19 15:50:36 +00:00
- g++-4.8 # required to compile glslang
2016-02-19 15:53:57 +00:00
- clang
2016-04-12 11:46:09 +00:00
- cmake
2016-04-12 11:49:22 +00:00
- cmake-data
2016-02-18 10:30:11 +00:00
2016-02-05 13:33:36 +00:00
script:
- cargo test -v --manifest-path glsl-to-spirv/Cargo.toml
- cargo test -v --manifest-path vulkano-shaders/Cargo.toml
2017-02-02 19:50:38 +00:00
- cargo test -v --manifest-path vulkano-shader-derive/Cargo.toml
# We run the projects that depend on vulkano with `-j 1` or we have a
# chance to reach travis' memory limit
- cargo test -j 1 --manifest-path vulkano-win/Cargo.toml
- cargo test --no-run -j 1 -v --manifest-path vulkano/Cargo.toml
2016-09-20 09:46:00 +00:00
- cargo test --doc -j 1 -v --manifest-path vulkano/Cargo.toml
2016-04-30 10:52:47 +00:00
- cargo build -j 1 --manifest-path examples/Cargo.toml
2016-02-18 09:57:24 +00:00
after_success:
2016-04-30 10:08:48 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2016-09-18 13:21:48 +00:00
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
2016-04-30 10:55:26 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2016-09-18 13:21:48 +00:00
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
2016-04-30 10:55:26 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2016-09-18 13:21:48 +00:00
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
2016-04-30 10:55:26 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2016-09-18 13:21:48 +00:00
cargo publish --token ${CRATESIO_TOKEN} --manifest-path glsl-to-spirv/Cargo.toml
2016-04-30 10:55:26 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
2016-09-18 13:21:48 +00:00
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
2017-02-02 19:50:38 +00:00
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shader-derive/Cargo.toml