File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,26 @@ matrix:
14
14
env : TARGET=x86_64-unknown-linux-gnu
15
15
16
16
install :
17
- - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
18
- - source ~/.cargo/env
19
- - rustup component add rust-src
17
+ # NOTE(TRAVIS_BRANCH) Travis is configured to only build *pushes* (not PRs).
18
+ - if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
19
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION;
20
+ source ~/.cargo/env;
21
+ rustup component add rust-src;
22
+ fi
20
23
21
24
script :
22
- - cargo generate-lockfile
23
- - sh ci/run-docker.sh $TARGET
24
- # Travis can't cache files that are not readable by "others"
25
- - chmod -R a+r $HOME/.cargo
25
+ # NOTE(TRAVIS_BRANCH) See the NOTE in the `install` section
26
+ # chmod: Travis can't cache files that are not readable by "others"
27
+ - if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
28
+ cargo generate-lockfile;
29
+ sh ci/run-docker.sh $TARGET;
30
+ chmod -R a+r $HOME/.cargo;
31
+ fi
26
32
27
33
branches :
28
34
only :
29
35
- auto
36
+ - master
30
37
- try
31
38
32
39
notifications :
You can’t perform that action at this time.
0 commit comments