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
13 - bash: printenv | sort
14 displayName: Show environment variables
19 du . | sort -nr | head -n100
20 displayName: Show disk usage
21 # FIXME: this hasn't been tested, but maybe it works on Windows? Should test!
22 condition: ne(variables['Agent.OS'], 'Windows_NT')
24 - template: install-sccache.yml
25 - template: install-clang.yml
27 # Install some dependencies needed to build LLDB/Clang, currently only needed
28 # during the `dist` target
34 displayName: Install build dependencies (OSX)
35 condition: and(eq(variables['Agent.OS'], 'Darwin'), eq(variables['RUST_CHECK_TARGET'],'dist'))
37 - template: install-windows-build-deps.yml
39 # Check out all our submodules, but more quickly than using git by using one of
43 mkdir -p $HOME/rustsrc
44 $BUILD_SOURCESDIRECTORY/src/ci/init_repo.sh . $HOME/rustsrc
45 condition: ne(variables['Agent.OS'], 'Windows_NT')
46 displayName: Check out submodules (Unix)
48 if not exist D:\cache\rustsrc\NUL mkdir D:\cache\rustsrc
49 sh src/ci/init_repo.sh . /d/cache/rustsrc
50 condition: eq(variables['Agent.OS'], 'Windows_NT')
51 displayName: Check out submodules (Windows)
53 # Configure our CI_JOB_NAME variable which log analyzers can use for the main
54 # step to see what's going on.
55 - bash: echo "##vso[task.setvariable variable=CI_JOB_NAME]$SYSTEM_JOBNAME"
56 condition: eq(variables['Agent.OS'], 'Windows_NT')
57 displayName: Configure Job Name (Windows)
59 # As a quick smoke check on the otherwise very fast mingw-check linux builder
60 # check our own internal scripts.
63 git clone --depth=1 https://github.com/rust-lang-nursery/rust-toolstate.git
65 python2.7 "$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$(git rev-parse HEAD)" "$(git log --format=%s -n1 HEAD)" "" ""
68 condition: and(succeeded(), eq(variables['IMAGE'], 'mingw-check'))
69 displayName: Verify the publish_toolstate script works
71 - script: sh src/ci/run.sh
76 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
77 displayName: Run build
81 deploy_dir=rustc-builds
82 if [ "$DEPLOY_ALT" == "1" ]; then
83 deploy_dir=rustc-builds-alt
85 aws s3 cp --no-progress --recursive --acl public-read ./deploy s3://$DEPLOY_BUCKET/$deploy_dir
87 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY)
88 condition: and(succeeded(), or(eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1')))
89 displayName: Upload artifacts