2018-11-11 00:46:23 +00:00
|
|
|
# The shaderc dependencies are already installed on the base images
|
|
|
|
# so we dont need to worry about installing them.
|
|
|
|
dist: xenial
|
2018-11-08 01:12:20 +00:00
|
|
|
os:
|
2018-11-11 00:46:23 +00:00
|
|
|
- linux
|
|
|
|
- osx
|
2019-01-06 20:44:03 +00:00
|
|
|
#- windows # Waiting on https://travis-ci.community/t/timeout-before-install-step/1502/3
|
2016-02-05 13:33:36 +00:00
|
|
|
language: rust
|
|
|
|
rust:
|
2018-11-11 00:46:23 +00:00
|
|
|
- nightly
|
|
|
|
- stable
|
2017-06-21 11:10:16 +00:00
|
|
|
cache:
|
|
|
|
cargo
|
2017-06-21 10:43:39 +00:00
|
|
|
|
2016-02-05 13:33:36 +00:00
|
|
|
script:
|
2018-11-11 00:46:23 +00:00
|
|
|
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|
|
|
|
- travis_wait cargo test --all -j 2
|
|
|
|
- cd examples
|
|
|
|
- cargo build -j 2
|
|
|
|
- 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:
|
2018-11-11 00:46:23 +00:00
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
[ $TRAVIS_OS_NAME = linux ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
|
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
[ $TRAVIS_OS_NAME = linux ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
|
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
[ $TRAVIS_OS_NAME = linux ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
|
|
|
|
- |
|
|
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
[ $TRAVIS_OS_NAME = linux ] &&
|
|
|
|
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
|