]> git.proxmox.com Git - cargo.git/blame - .travis.yml
Update travis token and fix warning
[cargo.git] / .travis.yml
CommitLineData
d6871956 1language: rust
429a7822
AC
2rust: stable
3sudo: required
4dist: trusty
5os: linux
6services:
7 - docker
cfb69ad2 8
cf71ae0d
AC
9git:
10 depth: 1
11
96fafda8
AC
12matrix:
13 include:
429a7822
AC
14 # stable linux builds, tested
15 - env: TARGET=x86_64-unknown-linux-gnu
16 ALT=i686-unknown-linux-gnu
17 IMAGE=dist
18 MAKE_TARGETS="test distcheck doc install uninstall"
cf71ae0d 19 ALLOW_PR=1
429a7822
AC
20 - env: TARGET=i686-unknown-linux-gnu
21 IMAGE=dist
22 MAKE_TARGETS=test-unit-i686-unknown-linux-gnu
23 CFG_DISABLE_CROSS_TESTS=1
24
25 # stable osx builds, tested
26 - env: TARGET=x86_64-apple-darwin
27 ALT=i686-apple-darwin
28 MAKE_TARGETS="test distcheck doc install uninstall"
29 MACOSX_DEPLOYMENT_TARGET=10.7
30 os: osx
429a7822 31 - env: TARGET=i686-apple-darwin
46fff013 32 MAKE_TARGETS=test-unit-i686-apple-darwin
429a7822
AC
33 MACOSX_DEPLOYMENT_TARGET=10.7
34 CFG_DISABLE_CROSS_TESTS=1
35 os: osx
429a7822
AC
36
37 # stable musl target, tested
38 - env: TARGET=x86_64-unknown-linux-musl
39 IMAGE=x86_64-musl
40 CFG_DISABLE_CROSS_TESTS=1
41 MAKE_TARGETS=test-unit-$TARGET
42
43 # cross compiled targets
44 - env: TARGET=arm-unknown-linux-gnueabi
45 IMAGE=cross
46 - env: TARGET=arm-unknown-linux-gnueabihf
47 IMAGE=cross
48 - env: TARGET=armv7-unknown-linux-gnueabihf
49 IMAGE=cross
50 - env: TARGET=aarch64-unknown-linux-gnu
51 IMAGE=cross
52 - env: TARGET=i686-unknown-freebsd
53 IMAGE=cross
54 - env: TARGET=x86_64-unknown-freebsd
55 IMAGE=cross
56 - env: TARGET=x86_64-unknown-netbsd
57 IMAGE=cross
58 - env: TARGET=mips-unknown-linux-gnu
59 IMAGE=cross
60 - env: TARGET=mipsel-unknown-linux-gnu
61 IMAGE=cross
62 - env: TARGET=mips64-unknown-linux-gnuabi64
63 IMAGE=cross
7a9f9087 64 rust: beta
429a7822
AC
65 - env: TARGET=mips64el-unknown-linux-gnuabi64
66 IMAGE=cross
7a9f9087 67 rust: beta
429a7822
AC
68 - env: TARGET=s390x-unknown-linux-gnu
69 IMAGE=cross
7a9f9087 70 rust: beta
429a7822
AC
71 - env: TARGET=powerpc-unknown-linux-gnu
72 IMAGE=cross
73 rust: beta
74 - env: TARGET=powerpc64-unknown-linux-gnu
75 IMAGE=cross
76 rust: beta
77 - env: TARGET=powerpc64le-unknown-linux-gnu
78 IMAGE=cross
79 rust: beta
80
81 # beta/nightly builds
82 - env: TARGET=x86_64-unknown-linux-gnu
83 ALT=i686-unknown-linux-gnu
84 IMAGE=dist
85 MAKE_TARGETS="test distcheck doc install uninstall"
86 DEPLOY=0
87 rust: beta
88 - env: TARGET=x86_64-unknown-linux-gnu
89 ALT=i686-unknown-linux-gnu
90 IMAGE=dist
91 MAKE_TARGETS="test distcheck doc install uninstall"
92 DEPLOY=0
b000ac67 93 rust: nightly
429a7822
AC
94
95 exclude:
96 - rust: stable
97
98before_script:
429a7822
AC
99 - curl https://static.rust-lang.org/rustup.sh |
100 sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
101 - if [ ! -z "$ALT" ]; then
102 curl https://static.rust-lang.org/rustup.sh |
103 sh -s -- --add-target=$ALT --disable-sudo -y --prefix=`rustc --print sysroot`;
104 fi
105script:
cf71ae0d 106 - >
541983bb 107 if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
cf71ae0d
AC
108 echo skipping, not a full build;
109 elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
110 SRC=. src/ci/run.sh $TARGET;
111 else
112 src/ci/docker/run.sh $IMAGE $TARGET;
113 fi
114
dc15ca5d
AC
115after_success: |
116 [ $TRAVIS_BRANCH = master ] &&
117 [ $TRAVIS_PULL_REQUEST = false ] &&
118 [ $(uname -s) = Linux ] &&
51d55488 119 pip install ghp-import --user &&
dc15ca5d 120 $HOME/.local/bin/ghp-import -n target/doc &&
41accdfd 121 git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 > /dev/null
429a7822
AC
122
123env:
124 global:
125 - DEPLOY=1
41accdfd 126 - secure: "hWheSLilMM4DXChfSy2XsDlLw338X2o+fw8bE590xxU2TzngFW8GUfq7lGfZEp/l4SNNIS6ROU/igyttCZtxZMANZ4aMQZR5E8Fp4yPOyE1pZLDH/LdQVXnROsfburQJeq+GIYIbZ01Abzh5ClpgLg5KX0H627uj063zZ7Ljo/w="
429a7822
AC
127
128notifications:
129 email:
130 on_success: never
131
132before_deploy:
133 - mkdir -p deploy/$TRAVIS_COMMIT
7a9f9087 134 - cp target/$TARGET/release/dist/cargo-*-$TARGET.tar.gz
429a7822 135 deploy/$TRAVIS_COMMIT
203d0da9
AC
136 - >
137 if [ "$TRAVIS_OS_NAME" == "osx" ]; then
138 find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'shasum -a 256 -b "{}" > "{}.sha256"' \;;
139 else
140 find "deploy/$TRAVIS_COMMIT" -maxdepth 1 -type f -exec sh -c 'sha256sum -b "{}" > "{}.sha256"' \;;
141 fi
429a7822
AC
142
143deploy:
144 - provider: s3
d3080f82 145 bucket: rust-lang-ci
429a7822
AC
146 skip_cleanup: true
147 local_dir: deploy
d3080f82 148 upload_dir: cargo-builds
429a7822 149 acl: public_read
d3080f82 150 region: us-east-1
15acaa9c 151 access_key_id: AKIAIWZDM2B2IJOWBGTA
429a7822 152 secret_access_key:
15acaa9c 153 secure: NB9b/MhIDiv8OtNiN/sHaFgA3xG2fa7MGuQQKJNj80ktvgByzDm5UPNyNeoYx9SmJ3jOWobgcPVaoUd2S+6XgO3bMBqm7sM/oMeE0KdqToh6+V2bKfyRF2U5fm697LEGepPIBYqMLDg4nr/dbknbKltzp6dAfJRyy22Nb721zPQ=
429a7822 154 on:
ee547be7 155 branch: auto-cargo
429a7822
AC
156 condition: $DEPLOY = 1
157
158cache:
159 directories:
160 - $HOME/.cargo
161 - target/openssl