1 # FIXME(linux): need to configure core dumps, enable them, and then dump
2 # backtraces on failure from all core dumps:
4 # - bash: sudo apt install gdb
5 # - bash: sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern'
7 # Check travis config for `gdb --batch` command to print all crash logs
11 # Ensure the `aws` CLI is installed so we can deploy later on, cache docker
15 sudo apt-get install -y python3-setuptools
16 pip3 install awscli --upgrade --user
17 echo "##vso[task.prependpath]$HOME/.local/bin"
18 displayName: Install awscli (Linux)
19 condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
20 - script: pip install awscli
21 displayName: Install awscli (non-Linux)
22 condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
30 - bash: printenv | sort
31 displayName: Show environment variables
36 du . | sort -nr | head -n100
37 displayName: Show disk usage
38 # FIXME: this hasn't been tested, but maybe it works on Windows? Should test!
39 condition: and(succeeded(), ne(variables['Agent.OS'], 'Windows_NT'))
41 - template: install-sccache.yml
42 - template: install-clang.yml
44 # Install some dependencies needed to build LLDB/Clang, currently only needed
45 # during the `dist` target
51 displayName: Install build dependencies (OSX)
52 condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'), eq(variables['RUST_CHECK_TARGET'],'dist'))
54 - template: install-windows-build-deps.yml
56 # Check out all our submodules, but more quickly than using git by using one of
60 mkdir -p $HOME/rustsrc
61 $BUILD_SOURCESDIRECTORY/src/ci/init_repo.sh . $HOME/rustsrc
62 condition: and(succeeded(), ne(variables['Agent.OS'], 'Windows_NT'))
63 displayName: Check out submodules (Unix)
65 if not exist D:\cache\rustsrc\NUL mkdir D:\cache\rustsrc
66 sh src/ci/init_repo.sh . /d/cache/rustsrc
67 condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
68 displayName: Check out submodules (Windows)
70 # Configure our CI_JOB_NAME variable which log analyzers can use for the main
71 # step to see what's going on.
72 - bash: echo "##vso[task.setvariable variable=CI_JOB_NAME]$SYSTEM_JOBNAME"
73 displayName: Configure Job Name
75 # As a quick smoke check on the otherwise very fast mingw-check linux builder
76 # check our own internal scripts.
79 git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
81 python2.7 "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" ""
84 condition: and(succeeded(), eq(variables['IMAGE'], 'mingw-check'))
85 displayName: Verify the publish_toolstate script works
89 if [ "$IMAGE" = "" ]; then
92 src/ci/docker/run.sh $IMAGE
98 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
99 displayName: Run build
103 deploy_dir=rustc-builds
104 if [ "$DEPLOY_ALT" == "1" ]; then
105 deploy_dir=rustc-builds-alt
107 aws s3 cp --no-progress --recursive --acl public-read ./deploy s3://$DEPLOY_BUCKET/$deploy_dir
109 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
110 condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1')))
111 displayName: Upload artifacts