Skip to content

Commit c9737af

Browse files
authoredFeb 14, 2017
Rollup merge of rust-lang#39754 - alexcrichton:less-assertions, r=brson
travis: Add builders without assertions This commit adds three new builders, one OSX, one Linux, and one MSVC, which will produce "nightlies" with LLVM assertions disabled. Currently all nightly releases have LLVM assertions enabled to catch bugs before they reach the beta/stable channels. The beta/stable channels, however, do not have LLVM assertions enabled. Unfortunately though projects like Servo are stuck on nightlies for the near future at least and are also suffering very long compile times. The purpose of this commit is to provide artifacts to these projects which are not distributed through normal channels (e.g. rustup) but are provided for developers to use locally if need be. Logistically these builds will all be uploaded to `rustc-builds-alt` instead of the `rustc-builds` folder of the `rust-lang-ci` bucket. These builds will stay there forever (until cleaned out if necessary) and there are no plans to integrate this with rustup and/or the official release process.
2 parents c2ea734 + 0340dde commit c9737af

File tree

4 files changed

+56
-1
lines changed

4 files changed

+56
-1
lines changed
 

‎.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ matrix:
7474
osx_image: xcode8.2
7575
install: *osx_install_sccache
7676
77+
# "alternate" deployments, these are "nightlies" but don't have assertions
78+
# turned on, they're deployed to a different location primarily for projects
79+
# which are stuck on nightly and don't want llvm assertions in the artifacts
80+
# that they use.
81+
- env: IMAGE=dist-x86-linux DEPLOY_ALT=1
82+
- env: >
83+
RUST_CHECK_TARGET=dist
84+
RUST_CONFIGURE_ARGS="--enable-extended"
85+
SRC=.
86+
DEPLOY_ALT=1
87+
os: osx
88+
osx_image: xcode8.2
89+
install: *osx_install_sccache
90+
7791
env:
7892
global:
7993
- SCCACHE_BUCKET=rust-lang-ci-sccache
@@ -134,3 +148,19 @@ deploy:
134148
on:
135149
branch: auto
136150
condition: $DEPLOY = 1
151+
152+
# this is the same as the above deployment provider except that it uploads to
153+
# a slightly different directory and has a different trigger
154+
- provider: s3
155+
bucket: rust-lang-ci
156+
skip_cleanup: true
157+
local_dir: deploy
158+
upload_dir: rustc-builds-alt
159+
acl: public_read
160+
region: us-east-1
161+
access_key_id: AKIAIPQVNYF2T3DTYIWQ
162+
secret_access_key:
163+
secure: "FBqDqOTeIPMu6v/WYPf4CFSlh9rLRZGKVtpLa5KkyuOhXRTrnEzBduEtS8/FMIxdQImvurhSvxWvqRybMOi4qoVfjMqqpHAI7uBbidbrvAcJoHNsx6BgUNVCIoH6a0UsAjTUtm6/YPIpzbHoLZXPL0GrHPMk6Mu04qVSmcYNWn4="
164+
on:
165+
branch: auto
166+
condition: $DEPLOY_ALT = 1

‎appveyor.yml

+22
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ environment:
6060
MINGW_DIR: mingw64
6161
DEPLOY: 1
6262

63+
# "alternate" deployment, see .travis.yml for more info
64+
- MSYS_BITS: 64
65+
RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended
66+
SCRIPT: python x.py dist
67+
DEPLOY_ALT: 1
68+
6369
matrix:
6470
fast_finish: true
6571

@@ -145,6 +151,22 @@ deploy:
145151
branch: auto
146152
DEPLOY: 1
147153

154+
# This provider is the same as the one above except that it has a slightly
155+
# different upload directory and a slightly different trigger
156+
- provider: S3
157+
skip_cleanup: true
158+
access_key_id: AKIAIPQVNYF2T3DTYIWQ
159+
secret_access_key:
160+
secure: +11jsUNFTQ9dq5Ad1i2+PeUJaXluFJ0zIJAXESE1dFT3Kdjku4/eDdgyjgsB6GnV
161+
bucket: rust-lang-ci
162+
set_public: true
163+
region: us-east-1
164+
artifact: /.*/
165+
folder: rustc-builds-alt
166+
on:
167+
branch: auto
168+
DEPLOY_ALT: 1
169+
148170
# init:
149171
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
150172
# on_finish:

‎src/ci/docker/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ exec docker \
4949
$args \
5050
--env CARGO_HOME=/cargo \
5151
--env DEPLOY=$DEPLOY \
52+
--env DEPLOY_ALT=$DEPLOY_ALT \
5253
--env LOCAL_USER_ID=`id -u` \
5354
--volume "$HOME/.cargo:/cargo" \
5455
--rm \

‎src/ci/run.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-locked-deps"
3131
#
3232
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
3333
# either automatically or manually.
34-
if [ "$DEPLOY" != "" ]; then
34+
if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
3535
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=nightly"
3636
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
3737

3838
if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
3939
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
40+
elif [ "$DEPLOY_ALT" != "" ]; then
41+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
4042
fi
4143
else
4244
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"

0 commit comments

Comments
 (0)
Please sign in to comment.