fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1# FIXME(linux): need to configure core dumps, enable them, and then dump 2# backtraces on failure from all core dumps: 3# 4# - bash: sudo apt install gdb 5# - bash: sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern' 6# 7# Check travis config for `gdb --batch` command to print all crash logs 8 9steps: 10 11# Configure our CI_JOB_NAME variable which log analyzers can use for the main 12# step to see what's going on. 13- bash: | 14 builder=$(echo $AGENT_JOBNAME | cut -d ' ' -f 2) 15 echo "##vso[task.setvariable variable=CI_JOB_NAME]$builder" 16 displayName: Configure Job Name 17 18# Disable automatic line ending conversion, which is enabled by default on 19# Azure's Windows image. Having the conversion enabled caused regressions both 20# in our test suite (it broke miri tests) and in the ecosystem, since we 21# started shipping install scripts with CRLF endings instead of the old LF. 22# 23# Note that we do this a couple times during the build as the PATH and current 24# user/directory change, e.g. when mingw is enabled. 25- bash: git config --global core.autocrlf false 26 displayName: "Disable git automatic line ending conversion" 27 28- checkout: self 29 fetchDepth: 2 30 31- bash: src/ci/scripts/setup-environment.sh 32 displayName: Setup environment 33 34- bash: src/ci/scripts/should-skip-this.sh 35 displayName: Decide whether to run this job 36 37- bash: src/ci/scripts/collect-cpu-stats.sh 38 displayName: Collect CPU-usage statistics in the background 39 40- bash: src/ci/scripts/dump-environment.sh 41 displayName: Show the current environment 42 43- bash: src/ci/scripts/install-sccache.sh 44 displayName: Install sccache 45 condition: and(succeeded(), not(variables.SKIP_JOB)) 46 47- bash: src/ci/scripts/install-clang.sh 48 displayName: Install clang 49 condition: and(succeeded(), not(variables.SKIP_JOB)) 50 51- bash: src/ci/scripts/switch-xcode.sh 52 displayName: Switch to Xcode 9.3 53 condition: and(succeeded(), not(variables.SKIP_JOB)) 54 55- bash: src/ci/scripts/install-wix.sh 56 displayName: Install wix 57 condition: and(succeeded(), not(variables.SKIP_JOB)) 58 59- bash: src/ci/scripts/install-innosetup.sh 60 displayName: Install InnoSetup 61 condition: and(succeeded(), not(variables.SKIP_JOB)) 62 63- bash: src/ci/scripts/windows-symlink-build-dir.sh 64 displayName: Ensure the build happens on C:\ instead of D:\ 65 condition: and(succeeded(), not(variables.SKIP_JOB)) 66 67- bash: src/ci/scripts/disable-git-crlf-conversion.sh 68 displayName: "Disable git automatic line ending conversion (on C:/)" 69 condition: and(succeeded(), not(variables.SKIP_JOB)) 70 71- bash: src/ci/scripts/install-msys2.sh 72 displayName: Install msys2 73 condition: and(succeeded(), not(variables.SKIP_JOB)) 74 75- bash: src/ci/scripts/install-msys2-packages.sh 76 displayName: Install msys2 packages 77 condition: and(succeeded(), not(variables.SKIP_JOB)) 78 79- bash: src/ci/scripts/install-mingw.sh 80 displayName: Install MinGW 81 condition: and(succeeded(), not(variables.SKIP_JOB)) 82 83- bash: src/ci/scripts/install-ninja.sh 84 displayName: Install ninja 85 condition: and(succeeded(), not(variables.SKIP_JOB)) 86 87- bash: src/ci/scripts/enable-docker-ipv6.sh 88 displayName: Enable IPv6 on Docker 89 condition: and(succeeded(), not(variables.SKIP_JOB)) 90 91# Disable automatic line ending conversion (again). On Windows, when we're 92# installing dependencies, something switches the git configuration directory or 93# re-enables autocrlf. We've not tracked down the exact cause -- and there may 94# be multiple -- but this should ensure submodules are checked out with the 95# appropriate line endings. 96- bash: src/ci/scripts/disable-git-crlf-conversion.sh 97 displayName: Disable git automatic line ending conversion 98 condition: and(succeeded(), not(variables.SKIP_JOB)) 99 100- bash: src/ci/scripts/checkout-submodules.sh 101 displayName: Checkout submodules 102 condition: and(succeeded(), not(variables.SKIP_JOB)) 103 104- bash: src/ci/scripts/verify-line-endings.sh 105 displayName: Verify line endings 106 condition: and(succeeded(), not(variables.SKIP_JOB)) 107 108# Ensure the `aws` CLI is installed so we can deploy later on, cache docker 109# images, etc. 110- bash: src/ci/scripts/install-awscli.sh 111 condition: and(succeeded(), not(variables.SKIP_JOB)) 112 displayName: Install awscli 113 114- bash: src/ci/scripts/run-build-from-ci.sh 115 timeoutInMinutes: 600 116 env: 117 AWS_ACCESS_KEY_ID: $(SCCACHE_AWS_ACCESS_KEY_ID) 118 AWS_SECRET_ACCESS_KEY: $(SCCACHE_AWS_SECRET_ACCESS_KEY) 119 TOOLSTATE_REPO_ACCESS_TOKEN: $(TOOLSTATE_REPO_ACCESS_TOKEN) 120 condition: and(succeeded(), not(variables.SKIP_JOB)) 121 displayName: Run build 122 123- bash: src/ci/scripts/upload-artifacts.sh 124 env: 125 AWS_ACCESS_KEY_ID: $(UPLOAD_AWS_ACCESS_KEY_ID) 126 AWS_SECRET_ACCESS_KEY: $(UPLOAD_AWS_SECRET_ACCESS_KEY) 127 displayName: Upload artifacts 128 # Adding a condition on DEPLOY=1 or DEPLOY_ALT=1 is not needed as all deploy 129 # builders *should* have the AWS credentials available. Still, explicitly 130 # adding the condition is helpful as this way CI will not silently skip 131 # deploying artifacts from a dist builder if the variables are misconfigured, 132 # erroring about invalid credentials instead. 133 condition: | 134 and( 135 succeeded(), not(variables.SKIP_JOB), 136 or( 137 variables.UPLOAD_AWS_SECRET_ACCESS_KEY, 138 eq(variables.DEPLOY, '1'), eq(variables.DEPLOY_ALT, '1') 139 ) 140 )