-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,131 changed files
with
6,684 additions
and
3,695 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
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
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
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,164 +1,10 @@ | ||
language: shell | ||
sudo: required | ||
dist: xenial | ||
services: | ||
- docker | ||
addons: | ||
apt: | ||
packages: | ||
- gdb | ||
script: echo Travis CI is not used anymore | ||
|
||
git: | ||
depth: 2 | ||
submodules: false | ||
|
||
env: | ||
global: | ||
- CI_JOB_NAME=$TRAVIS_JOB_NAME | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- env: IMAGE=x86_64-gnu-tools | ||
name: x86_64-gnu-tools | ||
if: branch = auto OR (type = pull_request AND commit_message =~ /(?i:^update.*\b(rls|rustfmt|clippy|miri|cargo)\b)/) | ||
|
||
before_install: | ||
# We'll use the AWS cli to download/upload cached docker layers as well as | ||
# push our deployments, so download that here. | ||
- pip install --user awscli; export PATH=$PATH:$HOME/.local/bin:$HOME/Library/Python/2.7/bin/ | ||
- mkdir -p $HOME/rustsrc | ||
# FIXME(#46924): these two commands are required to enable IPv6, | ||
# they shouldn't exist, please revert once more official solutions appeared. | ||
# see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729 | ||
- if [ "$TRAVIS_OS_NAME" = linux ]; then | ||
echo '{"ipv6":true,"fixed-cidr-v6":"fd9a:8454:6789:13f7::/64"}' | sudo tee /etc/docker/daemon.json; | ||
sudo service docker restart; | ||
fi | ||
|
||
install: | ||
- case "$TRAVIS_OS_NAME" in | ||
linux) | ||
travis_retry curl -fo $HOME/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl && | ||
chmod +x $HOME/stamp && | ||
export PATH=$PATH:$HOME | ||
;; | ||
osx) | ||
if [[ "$SCRIPT" == "./x.py dist" ]]; then | ||
travis_retry brew update && | ||
travis_retry brew install xz && | ||
travis_retry brew install swig@3 && | ||
brew link --force swig@3; | ||
fi && | ||
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin && | ||
chmod +x /usr/local/bin/sccache && | ||
travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin && | ||
chmod +x /usr/local/bin/stamp && | ||
travis_retry curl -f http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz | tar xJf - && | ||
export CC=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang && | ||
export CXX=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang++ && | ||
export AR=ar | ||
;; | ||
esac | ||
|
||
before_script: | ||
- > | ||
echo "#### Disk usage before running script:"; | ||
df -h; | ||
du . | sort -nr | head -n100 | ||
- > | ||
RUN_SCRIPT="src/ci/init_repo.sh . $HOME/rustsrc"; | ||
if [ "$TRAVIS_OS_NAME" = "osx" ]; then | ||
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh"; | ||
else | ||
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE"; | ||
# Enable core dump on Linux. | ||
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern'; | ||
fi | ||
- > | ||
if [ "$IMAGE" = mingw-check ]; then | ||
# verify the publish_toolstate script works. | ||
git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git; | ||
cd rust-toolstate; | ||
python2.7 "$TRAVIS_BUILD_DIR/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" ""; | ||
cd ..; | ||
rm -rf rust-toolstate; | ||
fi | ||
# Log time information from this machine and an external machine for insight into possible | ||
# clock drift. Timezones don't matter since relative deltas give all the necessary info. | ||
script: | ||
- > | ||
date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true) | ||
- stamp sh -x -c "$RUN_SCRIPT" | ||
- > | ||
date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true) | ||
after_success: | ||
- > | ||
echo "#### Build successful; Disk usage after running script:"; | ||
df -h; | ||
du . | sort -nr | head -n100 | ||
- > | ||
if [ "$DEPLOY$DEPLOY_ALT" == "1" ]; then | ||
mkdir -p deploy/$TRAVIS_COMMIT; | ||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
rm -rf build/dist/doc && | ||
cp -r build/dist/* deploy/$TRAVIS_COMMIT; | ||
else | ||
rm -rf obj/build/dist/doc && | ||
cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT; | ||
fi; | ||
ls -la deploy/$TRAVIS_COMMIT; | ||
deploy_dir=rustc-builds; | ||
if [ "$DEPLOY_ALT" == "1" ]; then | ||
deploy_dir=rustc-builds-alt; | ||
fi; | ||
travis_retry aws s3 cp --no-progress --recursive --acl public-read ./deploy s3://rust-lang-ci2/$deploy_dir | ||
fi | ||
after_failure: | ||
- > | ||
echo "#### Build failed; Disk usage after running script:"; | ||
df -h; | ||
du . | sort -nr | head -n100 | ||
# Random attempt at debugging currently. Just poking around in here to see if | ||
# anything shows up. | ||
|
||
# Dump backtrace for macOS | ||
- ls -lat $HOME/Library/Logs/DiagnosticReports/ | ||
- find $HOME/Library/Logs/DiagnosticReports | ||
-type f | ||
-name '*.crash' | ||
-not -name '*.stage2-*.crash' | ||
-not -name 'com.apple.CoreSimulator.CoreSimulatorService-*.crash' | ||
-exec printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" {} \; | ||
-exec head -750 {} \; | ||
-exec echo travis_fold":"end:crashlog \; || true | ||
|
||
# Dump backtrace for Linux | ||
- ln -s . checkout && | ||
for CORE in obj/cores/core.*; do | ||
EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); | ||
if [ -f "$EXE" ]; then | ||
printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; | ||
gdb --batch -q -c "$CORE" "$EXE" | ||
-iex 'set auto-load off' | ||
-iex 'dir src/' | ||
-iex 'set sysroot .' | ||
-ex bt | ||
-ex q; | ||
echo travis_fold":"end:crashlog; | ||
fi; | ||
done || true | ||
|
||
# see #50887 | ||
- cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true | ||
|
||
# attempt to debug anything killed by the oom killer on linux, just to see if | ||
# it happened | ||
- dmesg | grep -i kill | ||
branches: | ||
only: | ||
- auto | ||
- try | ||
|
||
notifications: | ||
email: false |
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
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
Oops, something went wrong.