]> git.lizzy.rs Git - rust.git/blob - .travis.yml
Auto merge of #39738 - keeperofdakeys:vec-docs, r=GuillaumeGomez
[rust.git] / .travis.yml
1 language: minimal
2 sudo: required
3 dist: trusty
4 services:
5   - docker
6
7 git:
8   depth: 1
9   submodules: false
10
11 matrix:
12   fast_finish: true
13   include:
14     # Linux builders, all docker images
15     - env: IMAGE=android DEPLOY=1
16     - env: IMAGE=armhf-gnu
17     - env: IMAGE=cross DEPLOY=1
18     - env: IMAGE=linux-tested-targets DEPLOY=1
19     - env: IMAGE=dist-arm-linux DEPLOY=1
20     - env: IMAGE=dist-armv7-aarch64-linux DEPLOY=1
21     - env: IMAGE=dist-freebsd DEPLOY=1
22     - env: IMAGE=dist-mips-linux DEPLOY=1
23     - env: IMAGE=dist-mips64-linux DEPLOY=1
24     - env: IMAGE=dist-powerpc-linux DEPLOY=1
25     - env: IMAGE=dist-powerpc64-linux DEPLOY=1
26     - env: IMAGE=dist-s390x-linux-netbsd DEPLOY=1
27     - env: IMAGE=dist-x86-linux DEPLOY=1
28     - env: IMAGE=emscripten
29     - env: IMAGE=i686-gnu
30     - env: IMAGE=i686-gnu-nopt
31     - env: IMAGE=x86_64-gnu
32     - env: IMAGE=x86_64-gnu-full-bootstrap
33     - env: IMAGE=x86_64-gnu-aux
34     - env: IMAGE=x86_64-gnu-debug
35     - env: IMAGE=x86_64-gnu-nopt
36     - env: IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
37     - env: IMAGE=x86_64-gnu-distcheck
38     - env: IMAGE=x86_64-gnu-incremental
39
40     # OSX builders
41     - env: >
42         RUST_CHECK_TARGET=check
43         RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
44         SRC=.
45       os: osx
46       osx_image: xcode8.2
47       install: &osx_install_sccache >
48         travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-24-sccache-x86_64-apple-darwin &&
49           chmod +x /usr/local/bin/sccache
50     - env: >
51         RUST_CHECK_TARGET=check
52         RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
53         SRC=.
54       os: osx
55       osx_image: xcode8.2
56       install: *osx_install_sccache
57
58     - env: >
59         RUST_CHECK_TARGET=dist
60         RUST_CONFIGURE_ARGS="--build=i686-apple-darwin --enable-extended"
61         SRC=.
62         DEPLOY=1
63       os: osx
64       osx_image: xcode8.2
65       install: >
66         travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-24-sccache-x86_64-apple-darwin &&
67           chmod +x /usr/local/bin/sccache &&
68           brew uninstall --ignore-dependencies openssl &&
69           brew install openssl --universal --without-test
70     - env: >
71         RUST_CHECK_TARGET=dist
72         RUST_CONFIGURE_ARGS="--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-extended"
73         SRC=.
74         DEPLOY=1
75       os: osx
76       osx_image: xcode8.2
77       install: *osx_install_sccache
78
79     # "alternate" deployments, these are "nightlies" but don't have assertions
80     # turned on, they're deployed to a different location primarily for projects
81     # which are stuck on nightly and don't want llvm assertions in the artifacts
82     # that they use.
83     - env: IMAGE=dist-x86-linux DEPLOY_ALT=1
84     - env: >
85         RUST_CHECK_TARGET=dist
86         RUST_CONFIGURE_ARGS="--enable-extended"
87         SRC=.
88         DEPLOY_ALT=1
89       os: osx
90       osx_image: xcode8.2
91       install: *osx_install_sccache
92
93 env:
94   global:
95     - SCCACHE_BUCKET=rust-lang-ci-sccache
96     - AWS_ACCESS_KEY_ID=AKIAIMX7VLAS3PZAVLUQ
97     # AWS_SECRET_ACCESS_KEY=...
98     - secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
99
100 script:
101   - >
102       if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
103           echo skipping, not a full build;
104       elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
105           travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
106           src/ci/run.sh;
107       else
108           travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
109           src/ci/docker/run.sh $IMAGE;
110       fi
111
112 # Save tagged docker images we created and load them if they're available
113 before_cache:
114   - docker history -q rust-ci |
115     grep -v missing |
116     xargs docker save |
117     gzip > $HOME/docker/rust-ci.tar.gz
118 before_install:
119   - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
120
121 notifications:
122   email: false
123
124 cache:
125   directories:
126     - $HOME/docker
127
128 before_deploy:
129   - mkdir -p deploy/$TRAVIS_COMMIT
130   - >
131       if [ "$TRAVIS_OS_NAME" == "osx" ]; then
132           rm -rf build/dist/doc &&
133           cp -r build/dist/* deploy/$TRAVIS_COMMIT;
134       else
135           rm -rf obj/build/dist/doc &&
136           cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
137       fi
138
139 deploy:
140   - provider: s3
141     bucket: rust-lang-ci
142     skip_cleanup: true
143     local_dir: deploy
144     upload_dir: rustc-builds
145     acl: public_read
146     region: us-east-1
147     access_key_id: AKIAIPQVNYF2T3DTYIWQ
148     secret_access_key:
149       secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
150     on:
151       branch: auto
152       condition: $DEPLOY = 1
153
154   # this is the same as the above deployment provider except that it uploads to
155   # a slightly different directory and has a different trigger
156   - provider: s3
157     bucket: rust-lang-ci
158     skip_cleanup: true
159     local_dir: deploy
160     upload_dir: rustc-builds-alt
161     acl: public_read
162     region: us-east-1
163     access_key_id: AKIAIPQVNYF2T3DTYIWQ
164     secret_access_key:
165       secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
166     on:
167       branch: auto
168       condition: $DEPLOY_ALT = 1