vulkano/.travis.yml

64 lines
1.8 KiB
YAML
Raw Normal View History

2016-02-05 13:33:36 +00:00
language: rust
jobs:
include:
- os: windows
env: PYTHONPATH=C:\Python38
env: PATH="C:\Python38;$PATH"
rust:
- stable
- os: windows
env: PYTHONPATH=C:\Python38
env: PATH="C:\Python38;$PATH"
rust:
- nightly
- os: linux
dist: bionic
rust:
- stable
- os: linux
dist: bionic
rust:
- nightly
- os: osx
rust:
- stable
- os: osx
rust:
- nightly
cache:
cargo
2017-06-21 10:43:39 +00:00
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install ninja; choco install python3 --params "/InstallAllUsers"; fi
2016-02-05 13:33:36 +00:00
script:
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
2019-11-03 09:00:35 +00:00
- travis_wait 30 cargo test --all -j 2 -- --test-threads=2
- cd examples
2019-11-03 09:00:35 +00:00
- travis_wait 30 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
after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
2019-11-03 09:00:35 +00:00
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
2019-11-03 09:00:35 +00:00
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
2019-11-03 09:00:35 +00:00
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
2019-11-03 09:00:35 +00:00
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml