-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix instances of try! converting to ? syntax
- Loading branch information
Showing
112 changed files
with
1,984 additions
and
1,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,153 @@ | ||
language: rust | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
sudo: false | ||
rust: stable | ||
sudo: required | ||
dist: trusty | ||
os: linux | ||
services: | ||
- docker | ||
|
||
matrix: | ||
include: | ||
# stable linux builds, tested | ||
- env: TARGET=x86_64-unknown-linux-gnu | ||
ALT=i686-unknown-linux-gnu | ||
IMAGE=dist | ||
MAKE_TARGETS="test distcheck doc install uninstall" | ||
- env: TARGET=i686-unknown-linux-gnu | ||
IMAGE=dist | ||
MAKE_TARGETS=test-unit-i686-unknown-linux-gnu | ||
CFG_DISABLE_CROSS_TESTS=1 | ||
|
||
# stable osx builds, tested | ||
- env: TARGET=x86_64-apple-darwin | ||
ALT=i686-apple-darwin | ||
MAKE_TARGETS="test distcheck doc install uninstall" | ||
MACOSX_DEPLOYMENT_TARGET=10.7 | ||
os: osx | ||
- env: TARGET=i686-apple-darwin | ||
MAKE_TARGETS=test | ||
MACOSX_DEPLOYMENT_TARGET=10.7 | ||
CFG_DISABLE_CROSS_TESTS=1 | ||
os: osx | ||
install: brew uninstall openssl && brew install openssl --universal --without-test | ||
|
||
# stable musl target, tested | ||
- env: TARGET=x86_64-unknown-linux-musl | ||
IMAGE=x86_64-musl | ||
CFG_DISABLE_CROSS_TESTS=1 | ||
MAKE_TARGETS=test-unit-$TARGET | ||
|
||
# cross compiled targets | ||
- env: TARGET=arm-unknown-linux-gnueabi | ||
IMAGE=cross | ||
- env: TARGET=arm-unknown-linux-gnueabihf | ||
IMAGE=cross | ||
- env: TARGET=armv7-unknown-linux-gnueabihf | ||
IMAGE=cross | ||
- env: TARGET=aarch64-unknown-linux-gnu | ||
IMAGE=cross | ||
- env: TARGET=i686-unknown-freebsd | ||
IMAGE=cross | ||
- env: TARGET=x86_64-unknown-freebsd | ||
IMAGE=cross | ||
- env: TARGET=x86_64-unknown-netbsd | ||
IMAGE=cross | ||
- env: TARGET=mips-unknown-linux-gnu | ||
IMAGE=cross | ||
- env: TARGET=mipsel-unknown-linux-gnu | ||
IMAGE=cross | ||
- env: TARGET=mips64-unknown-linux-gnuabi64 | ||
IMAGE=cross | ||
rust: nightly | ||
- env: TARGET=mips64el-unknown-linux-gnuabi64 | ||
IMAGE=cross | ||
rust: nightly | ||
- env: TARGET=s390x-unknown-linux-gnu | ||
IMAGE=cross | ||
rust: nightly | ||
- env: TARGET=powerpc-unknown-linux-gnu | ||
IMAGE=cross | ||
rust: beta | ||
- env: TARGET=powerpc64-unknown-linux-gnu | ||
IMAGE=cross | ||
rust: beta | ||
- env: TARGET=powerpc64le-unknown-linux-gnu | ||
IMAGE=cross | ||
rust: beta | ||
|
||
# beta/nightly builds | ||
- env: TARGET=x86_64-unknown-linux-gnu | ||
ALT=i686-unknown-linux-gnu | ||
IMAGE=dist | ||
MAKE_TARGETS="test distcheck doc install uninstall" | ||
DEPLOY=0 | ||
rust: beta | ||
- env: TARGET=x86_64-unknown-linux-gnu | ||
ALT=i686-unknown-linux-gnu | ||
IMAGE=dist | ||
MAKE_TARGETS="test distcheck doc install uninstall" | ||
DEPLOY=0 | ||
rust: nightly | ||
|
||
exclude: | ||
- rust: stable | ||
|
||
before_script: | ||
- curl https://static.rust-lang.org/rustup.sh | | ||
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot` | ||
- if [ ! -z "$ALT" ]; then | ||
curl https://static.rust-lang.org/rustup.sh | | ||
sh -s -- --add-target=$ALT --disable-sudo -y --prefix=`rustc --print sysroot`; | ||
fi | ||
script: | ||
- ./configure --prefix=$HOME/cargo-install --disable-cross-tests --disable-optimize | ||
- make | ||
- make test | ||
- make distcheck | ||
- make doc | ||
- make install | ||
- make uninstall | ||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then | ||
SRC=. src/ci/run.sh $TARGET; | ||
else | ||
src/ci/docker/run.sh $IMAGE $TARGET; | ||
fi | ||
after_success: | | ||
[ $TRAVIS_BRANCH = master ] && | ||
[ $TRAVIS_PULL_REQUEST = false ] && | ||
[ $(uname -s) = Linux ] && | ||
pip install ghp-import --user $USER && | ||
$HOME/.local/bin/ghp-import -n target/doc && | ||
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages | ||
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages | ||
env: | ||
global: | ||
# apparently we use too much memory and if there's more than one rustc then | ||
# when compiling Cargo's unit tests some compilers will be randomly kill | ||
# -9'd | ||
- CARGOFLAGS=-j1 | ||
- secure: scGpeetUfba5RWyuS4yt10bPoFAI9wpHEReIFqEx7eH5vr2Anajk6+70jW6GdrWVdUvdINiArlQ3An2DeB9vEUWcBjw8WvuPtOH0tDMoSsuVloPlFD8yn1Ac0Bx9getAO5ofxqtoNg+OV4MDVuGabEesqAOWqURNrBC7XK+ntC8= | ||
- DEPLOY=1 | ||
- secure: LB2o9UL90Z4CVOLVQsTbZr7ZBLA1dCLxFODuCkPkbdqG3Kl5z1yMIPMRvSbjp9KwBlIgm+Mg0R1iqphKVq+rVP5zo96K4+kEQMG+zWsPb23ZKTxiL8MK5VgCZ7s9AONCvNeCTCNAG3EyeciFr5Zr9eygVCfo0WF6JsPujYYQZx0= | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
rust: stable | ||
before_install: | ||
- export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include | ||
- export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib | ||
notifications: | ||
email: | ||
on_success: never | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- kalakris-cmake | ||
packages: | ||
- cmake | ||
- g++-multilib | ||
- lib32stdc++6 | ||
- master | ||
- auto-cargo | ||
|
||
before_deploy: | ||
- mkdir -p deploy/$TRAVIS_COMMIT | ||
- cp target/$TARGET/release/dist/cargo-nightly-$TARGET.tar.gz | ||
deploy/$TRAVIS_COMMIT | ||
|
||
deploy: | ||
- provider: s3 | ||
bucket: rust-lang-cargo-dev | ||
skip_cleanup: true | ||
local_dir: deploy | ||
upload_dir: cargo-master | ||
acl: public_read | ||
region: us-west-1 | ||
access_key_id: AKIAIWZDM2B2IJOWBGTA | ||
secret_access_key: | ||
secure: NB9b/MhIDiv8OtNiN/sHaFgA3xG2fa7MGuQQKJNj80ktvgByzDm5UPNyNeoYx9SmJ3jOWobgcPVaoUd2S+6XgO3bMBqm7sM/oMeE0KdqToh6+V2bKfyRF2U5fm697LEGepPIBYqMLDg4nr/dbknbKltzp6dAfJRyy22Nb721zPQ= | ||
on: | ||
branch: auto-cargo | ||
condition: $DEPLOY = 1 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.cargo | ||
- target/openssl |
Oops, something went wrong.