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 pip install setuptools
17 displayName: Install awscli
24 - bash: printenv | sort
25 displayName: Show environment variables
30 du . | sort -nr | head -n100
31 displayName: Show disk usage
32 # FIXME: this hasn't been tested, but maybe it works on Windows? Should test!
33 condition: ne(variables['Agent.OS'], 'Windows_NT')
35 - template: install-sccache.yml
36 - template: install-clang.yml
38 # Install some dependencies needed to build LLDB/Clang, currently only needed
39 # during the `dist` target
45 displayName: Install build dependencies (OSX)
46 condition: and(eq(variables['Agent.OS'], 'Darwin'), eq(variables['RUST_CHECK_TARGET'],'dist'))
48 - template: install-windows-build-deps.yml
50 # Check out all our submodules, but more quickly than using git by using one of
54 mkdir -p $HOME/rustsrc
55 $BUILD_SOURCESDIRECTORY/src/ci/init_repo.sh . $HOME/rustsrc
56 condition: ne(variables['Agent.OS'], 'Windows_NT')
57 displayName: Check out submodules (Unix)
59 if not exist D:\cache\rustsrc\NUL mkdir D:\cache\rustsrc
60 sh src/ci/init_repo.sh . /d/cache/rustsrc
61 condition: eq(variables['Agent.OS'], 'Windows_NT')
62 displayName: Check out submodules (Windows)
64 # Configure our CI_JOB_NAME variable which log analyzers can use for the main
65 # step to see what's going on.
66 - bash: echo "##vso[task.setvariable variable=CI_JOB_NAME]$SYSTEM_JOBNAME"
67 displayName: Configure Job Name
69 # As a quick smoke check on the otherwise very fast mingw-check linux builder
70 # check our own internal scripts.
73 git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
75 python2.7 "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" ""
78 condition: and(succeeded(), eq(variables['IMAGE'], 'mingw-check'))
79 displayName: Verify the publish_toolstate script works
83 if [ "$IMAGE" = "" ]; then
86 src/ci/docker/run.sh $IMAGE
92 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
93 displayName: Run build
97 deploy_dir=rustc-builds
98 if [ "$DEPLOY_ALT" == "1" ]; then
99 deploy_dir=rustc-builds-alt
101 aws s3 cp --no-progress --recursive --acl public-read ./deploy s3://$DEPLOY_BUCKET/$deploy_dir
103 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
104 condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1')))
105 displayName: Upload artifacts