2016-02-05 13:33:36 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
- stable
|
|
|
|
|
2017-06-21 11:10:16 +00:00
|
|
|
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:
|
2018-09-20 14:24:24 +00:00
|
|
|
- travis_wait cargo test --all -j 1
|
2018-08-11 01:10:17 +00:00
|
|
|
- cd examples
|
|
|
|
- cargo build
|
2018-08-12 10:26:57 +00:00
|
|
|
- cd .. # this is very important or else the below `cargo publish` will fail
|
2016-02-18 09:57:24 +00:00
|
|
|
|
2016-09-01 12:41:29 +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 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
|