Skip to content

Commit 7dfcac5

Browse files
committed
Auto merge of #39050 - alexcrichton:travis-nightly, r=brson
travis: Pass --release-channel=nightly on deploy This commit passes the `--release-channel=nightly` flag to all images which have the `DEPLOY` flag set. This means that we'll name artifacts and the compiler appropriately. This reworks a bit how arguments are passed, but for now doesn't change what's already being passed. Eventually we'll want to avoid enabling debug assertions and llvm assertions for *all* releases, but I figure we can tackle that a little bit more down the road.
2 parents 31dee37 + 0618580 commit 7dfcac5

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ fi
745745
case "$CFG_RELEASE_CHANNEL" in
746746
nightly )
747747
msg "overriding settings for $CFG_RELEASE_CHANNEL"
748-
CFG_ENABLE_LLVM_ASSERTIONS=1
748+
enable_if_not_disabled llvm-assertions
749749
# FIXME(stage0) re-enable this on the next stage0 now that #35566 is
750750
# fixed
751751
case "$CFG_BUILD" in

src/ci/docker/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exec docker \
4848
--env SRC=/checkout \
4949
$args \
5050
--env CARGO_HOME=/cargo \
51+
--env DEPLOY=$DEPLOY \
5152
--env LOCAL_USER_ID=`id -u` \
5253
--volume "$HOME/.cargo:/cargo" \
5354
rust-ci \

src/ci/run.sh

+33-10
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,47 @@ if [ "$LOCAL_USER_ID" != "" ]; then
1818
exec su --preserve-environment -c "env PATH=$PATH \"$0\"" user
1919
fi
2020

21+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
22+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-quiet-tests"
23+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-manage-submodules"
24+
25+
# FIXME: we shouldn't forcibly enable debug assertions and llvm assertions when
26+
# `DEPLOY` is set because then we'll be shipping slower binaries. We
27+
# should only set these for auto branches, but we need to make sure that
28+
# if we disable this all the relevant platforms are still tested
29+
# somewhere with debug and llvm assertions.
30+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
31+
32+
# In general we always want to run tests with LLVM assertions enabled, but not
33+
# all platforms currently support that, so we have an option to disable.
2134
if [ "$NO_LLVM_ASSERTIONS" = "" ]; then
22-
ENABLE_LLVM_ASSERTIONS=--enable-llvm-assertions
35+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-assertions"
36+
fi
37+
38+
# If we're deploying artifacts then we set the release channel, otherwise if
39+
# we're not deploying then we want to be sure to enable all assertions becauase
40+
# we'll be running tests
41+
#
42+
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
43+
# either automatically or manually.
44+
if [ "$DEPLOY" != "" ]; then
45+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=nightly"
46+
47+
if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
48+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
49+
fi
2350
fi
2451

52+
# We want to enable usage of the `src/vendor` dir as much as possible, but not
53+
# all test suites have all their deps in there (just the main bootstrap) so we
54+
# have the ability to disable this flag
2555
if [ "$NO_VENDOR" = "" ]; then
26-
ENABLE_VENDOR=--enable-vendor
56+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-vendor"
2757
fi
2858

2959
set -ex
3060

31-
$SRC/configure \
32-
--disable-manage-submodules \
33-
--enable-debug-assertions \
34-
--enable-quiet-tests \
35-
--enable-sccache \
36-
$ENABLE_VENDOR \
37-
$ENABLE_LLVM_ASSERTIONS \
38-
$RUST_CONFIGURE_ARGS
61+
$SRC/configure $RUST_CONFIGURE_ARGS
3962

4063
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
4164
ncpus=$(sysctl -n hw.ncpu)

0 commit comments

Comments
 (0)