forked from vulkano-rs/vulkano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (63 loc) · 1.9 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: rust
jobs:
fast_finish: true
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:
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
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install ninja; choco install python3 --params "/InstallAllUsers"; fi
script:
- git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
- travis_wait 30 cargo build -j 2 --all
- travis_wait 30 cargo test -j 2 --all
after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
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 ] &&
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 ] &&
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 ] &&
travis_wait 30 cargo publish -j 2 --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml