]>
Commit | Line | Data |
---|---|---|
d6871956 | 1 | language: rust |
429a7822 AC |
2 | rust: stable |
3 | sudo: required | |
4 | dist: trusty | |
cfb69ad2 | 5 | |
cf71ae0d AC |
6 | git: |
7 | depth: 1 | |
8 | ||
d70a3b1e MG |
9 | # Using 'cache: cargo' to cache target/ and all of $HOME/.cargo/ |
10 | # doesn't work well: the cache is large and it takes several minutes | |
11 | # to move it to and from S3. So instead we only cache the mdbook | |
12 | # binary. | |
0971aac7 BE |
13 | cache: |
14 | directories: | |
15 | - $HOME/.cargo/bin/ | |
16 | ||
96fafda8 AC |
17 | matrix: |
18 | include: | |
429a7822 AC |
19 | - env: TARGET=x86_64-unknown-linux-gnu |
20 | ALT=i686-unknown-linux-gnu | |
429a7822 AC |
21 | - env: TARGET=x86_64-apple-darwin |
22 | ALT=i686-apple-darwin | |
429a7822 | 23 | os: osx |
429a7822 | 24 | |
429a7822 AC |
25 | - env: TARGET=x86_64-unknown-linux-gnu |
26 | ALT=i686-unknown-linux-gnu | |
b1973ba1 | 27 | rust: beta |
50a46f47 | 28 | |
429a7822 AC |
29 | - env: TARGET=x86_64-unknown-linux-gnu |
30 | ALT=i686-unknown-linux-gnu | |
228c208c | 31 | rust: nightly |
102ab97f | 32 | install: |
0971aac7 | 33 | - mdbook --help || cargo install mdbook --force |
50a46f47 AC |
34 | script: |
35 | - cargo test | |
36 | - cargo doc --no-deps | |
37 | - sh src/ci/dox.sh | |
38 | after_success: | | |
39 | [ $TRAVIS_BRANCH = master ] && | |
40 | [ $TRAVIS_PULL_REQUEST = false ] && | |
41 | [ $(uname -s) = Linux ] && | |
42 | pip install ghp-import --user && | |
43 | $HOME/.local/bin/ghp-import -n target/doc && | |
102ab97f | 44 | git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null |
429a7822 AC |
45 | |
46 | exclude: | |
47 | - rust: stable | |
48 | ||
49 | before_script: | |
50a46f47 | 50 | - rustup target add $ALT |
429a7822 | 51 | script: |
50a46f47 | 52 | - cargo test |
429a7822 AC |
53 | |
54 | env: | |
55 | global: | |
41accdfd | 56 | - secure: "hWheSLilMM4DXChfSy2XsDlLw338X2o+fw8bE590xxU2TzngFW8GUfq7lGfZEp/l4SNNIS6ROU/igyttCZtxZMANZ4aMQZR5E8Fp4yPOyE1pZLDH/LdQVXnROsfburQJeq+GIYIbZ01Abzh5ClpgLg5KX0H627uj063zZ7Ljo/w=" |
429a7822 AC |
57 | |
58 | notifications: | |
59 | email: | |
60 | on_success: never | |
50a46f47 AC |
61 | addons: |
62 | apt: | |
63 | packages: | |
64 | - gcc-multilib |