2016-02-05 13:33:36 +00:00
|
|
|
language: rust
|
2019-10-27 16:58:32 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-11-18 11:19:41 +00:00
|
|
|
fast_finish: true
|
2019-10-27 16:58:32 +00:00
|
|
|
include:
|
2020-01-21 06:19:15 +00:00
|
|
|
# - 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
|
2019-10-27 16:58:32 +00:00
|
|
|
- os: linux
|
|
|
|
dist: bionic
|
|
|
|
rust:
|
|
|
|
- stable
|
2020-10-25 12:30:44 +00:00
|
|
|
# Nightly build turned off until #1423 resolved
|
|
|
|
# - os: linux
|
|
|
|
# dist: bionic
|
|
|
|
# rust:
|
|
|
|
# - nightly
|
2019-10-27 16:58:32 +00:00
|
|
|
- os: osx
|
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- os: osx
|
|
|
|
rust:
|
|
|
|
- nightly
|
|
|
|
|
2017-06-21 11:10:16 +00:00
|
|
|
cache:
|
2019-11-18 11:19:41 +00:00
|
|
|
directories:
|
|
|
|
- $TRAVIS_HOME/.cargo/
|
|
|
|
- $TRAVIS_BUILD_DIR/target/debug/build
|
|
|
|
- $TRAVIS_BUILD_DIR/target/debug/deps
|
|
|
|
- $TRAVIS_BUILD_DIR/target/debug/incremental
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -rf $TRAVIS_HOME/.cargo/registry/src
|
2017-06-21 10:43:39 +00:00
|
|
|
|
2019-10-27 16:58:32 +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:
|
2018-11-11 00:46:23 +00:00
|
|
|
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
|
2019-11-18 11:19:41 +00:00
|
|
|
- travis_wait 30 cargo build -j 2 --all
|
|
|
|
- travis_wait 30 cargo test -j 2 --all
|
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 ] &&
|
2019-11-03 09:00:35 +00:00
|
|
|
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
|
2018-11-11 00:46:23 +00:00
|
|
|
- |
|
|
|
|
[ $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
|
2018-11-11 00:46:23 +00:00
|
|
|
- |
|
|
|
|
[ $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
|
2018-11-11 00:46:23 +00:00
|
|
|
- |
|
|
|
|
[ $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
|