diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-31 17:42:40 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-12 15:29:04 -0800 |
| commit | 318767266fece7b0c3f2965d6664b80b7aaa1613 (patch) | |
| tree | a3de1496b249b6325c800245b1301a78a50b4a03 /src/ci | |
| parent | e35717814686ea3e3d44a8f5c1c20d1cd50be82a (diff) | |
| download | rust-318767266fece7b0c3f2965d6664b80b7aaa1613.tar.gz rust-318767266fece7b0c3f2965d6664b80b7aaa1613.zip | |
travis: Start uploading artifacts on commits
This commit starts adding the infrastructure for uploading release artifacts from AppVeyor/Travis on each commit. The idea is that eventually we'll upload a full release to AppVeyor/Travis in accordance with plans [outlined earlier]. Right now this configures Travis/Appveyor to upload all tarballs in the `dist` directory, and various images are updated to actually produce tarballs in these directories. These are nowhere near ready to be actual release artifacts, but this should allow us to play around with it and test it out. Once this commit lands we should start seeing artifacts uploaded on each commit. [outlined earlier]: https://internals.rust-lang.org/t/rust-ci-release-infrastructure-changes/4489
Diffstat (limited to 'src/ci')
| -rw-r--r-- | src/ci/docker/arm-android/Dockerfile | 7 | ||||
| -rwxr-xr-x | src/ci/docker/arm-android/start-emulator.sh | 1 | ||||
| -rw-r--r-- | src/ci/docker/cross/Dockerfile | 7 | ||||
| -rw-r--r-- | src/ci/docker/dist-arm-unknown-linux-gnueabi/Dockerfile | 8 | ||||
| -rw-r--r-- | src/ci/docker/dist-x86_64-unknown-freebsd/Dockerfile | 8 | ||||
| -rw-r--r-- | src/ci/docker/i686-gnu/Dockerfile | 2 | ||||
| -rw-r--r-- | src/ci/docker/x86_64-gnu-debug/Dockerfile | 2 | ||||
| -rw-r--r-- | src/ci/docker/x86_64-gnu-distcheck/Dockerfile | 2 | ||||
| -rw-r--r-- | src/ci/docker/x86_64-gnu-full-bootstrap/Dockerfile | 2 | ||||
| -rw-r--r-- | src/ci/docker/x86_64-gnu/Dockerfile | 2 | ||||
| -rw-r--r-- | src/ci/docker/x86_64-musl/Dockerfile | 5 | ||||
| -rwxr-xr-x | src/ci/run.sh | 10 |
12 files changed, 31 insertions, 25 deletions
diff --git a/src/ci/docker/arm-android/Dockerfile b/src/ci/docker/arm-android/Dockerfile index a40e76839ec..e2ef8070b51 100644 --- a/src/ci/docker/arm-android/Dockerfile +++ b/src/ci/docker/arm-android/Dockerfile @@ -48,4 +48,9 @@ ENV RUST_CONFIGURE_ARGS \ --armv7-linux-androideabi-ndk=/android/ndk-arm-9 \ --i686-linux-android-ndk=/android/ndk-x86-9 \ --aarch64-linux-android-ndk=/android/ndk-aarch64 -ENV XPY_CHECK test --target arm-linux-androideabi + +# Just a smoke test in dist to see if this works for now, we should expand this +# to all the targets above eventually. +ENV SCRIPT \ + python2.7 ../x.py test --target arm-linux-androideabi && \ + python2.7 ../x.py dist --target arm-linux-androideabi diff --git a/src/ci/docker/arm-android/start-emulator.sh b/src/ci/docker/arm-android/start-emulator.sh index fcf42c1819e..24c477d87f1 100755 --- a/src/ci/docker/arm-android/start-emulator.sh +++ b/src/ci/docker/arm-android/start-emulator.sh @@ -13,5 +13,4 @@ set -ex ANDROID_EMULATOR_FORCE_32BIT=true \ nohup nohup emulator @arm-18 -no-window -partition-size 2047 \ 0<&- &>/dev/null & -adb wait-for-device exec "$@" diff --git a/src/ci/docker/cross/Dockerfile b/src/ci/docker/cross/Dockerfile index c5aa323f50c..6a6cc23698b 100644 --- a/src/ci/docker/cross/Dockerfile +++ b/src/ci/docker/cross/Dockerfile @@ -56,7 +56,12 @@ ENV TARGETS=$TARGETS,wasm32-unknown-emscripten ENV RUST_CONFIGURE_ARGS \ --target=$TARGETS \ --enable-rustbuild -ENV RUST_CHECK_TARGET "" + +# Just a smoke test in dist to see if this works for now, we should expand this +# to all the targets above eventually. +ENV SCRIPT \ + python2.7 ../x.py build && \ + python2.7 ../x.py dist --target wasm32-unknown-emscripten ENV AR_s390x_unknown_linux_gnu=s390x-linux-gnu-ar \ CC_s390x_unknown_linux_gnu=s390x-linux-gnu-gcc \ diff --git a/src/ci/docker/dist-arm-unknown-linux-gnueabi/Dockerfile b/src/ci/docker/dist-arm-unknown-linux-gnueabi/Dockerfile index 9b0f1b7a0a7..841464a4270 100644 --- a/src/ci/docker/dist-arm-unknown-linux-gnueabi/Dockerfile +++ b/src/ci/docker/dist-arm-unknown-linux-gnueabi/Dockerfile @@ -24,7 +24,7 @@ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-ini ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENV RUST_CONFIGURE_ARGS --host=arm-unknown-linux-gnueabi -ENV XPY_RUN \ - dist \ - --host arm-unknown-linux-gnueabi \ - --target arm-unknown-linux-gnueabi +ENV SCRIPT \ + python2.7 ../x.py dist \ + --host arm-unknown-linux-gnueabi \ + --target arm-unknown-linux-gnueabi diff --git a/src/ci/docker/dist-x86_64-unknown-freebsd/Dockerfile b/src/ci/docker/dist-x86_64-unknown-freebsd/Dockerfile index f1a6ccf9ebc..44cc57c2662 100644 --- a/src/ci/docker/dist-x86_64-unknown-freebsd/Dockerfile +++ b/src/ci/docker/dist-x86_64-unknown-freebsd/Dockerfile @@ -32,7 +32,7 @@ ENV \ CXX_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-g++ ENV RUST_CONFIGURE_ARGS --host=x86_64-unknown-freebsd -ENV XPY_RUN \ - dist \ - --host x86_64-unknown-freebsd \ - --target x86_64-unknown-freebsd +ENV SCRIPT \ + python2.7 ../x.py dist \ + --host x86_64-unknown-freebsd \ + --target x86_64-unknown-freebsd diff --git a/src/ci/docker/i686-gnu/Dockerfile b/src/ci/docker/i686-gnu/Dockerfile index e4310232d78..6583f09be36 100644 --- a/src/ci/docker/i686-gnu/Dockerfile +++ b/src/ci/docker/i686-gnu/Dockerfile @@ -23,4 +23,4 @@ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-ini ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu -ENV RUST_CHECK_TARGET check +ENV SCRIPT python2.7 ../x.py test && python2.7 ../x.py dist diff --git a/src/ci/docker/x86_64-gnu-debug/Dockerfile b/src/ci/docker/x86_64-gnu-debug/Dockerfile index 9ec8c6059ec..f54e4e562f8 100644 --- a/src/ci/docker/x86_64-gnu-debug/Dockerfile +++ b/src/ci/docker/x86_64-gnu-debug/Dockerfile @@ -26,4 +26,4 @@ ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --enable-debug \ --enable-optimize -ENV RUST_CHECK_TARGET "" +ENV SCRIPT python2.7 ../x.py build diff --git a/src/ci/docker/x86_64-gnu-distcheck/Dockerfile b/src/ci/docker/x86_64-gnu-distcheck/Dockerfile index 880c70866b0..57a2c103f1e 100644 --- a/src/ci/docker/x86_64-gnu-distcheck/Dockerfile +++ b/src/ci/docker/x86_64-gnu-distcheck/Dockerfile @@ -23,4 +23,4 @@ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-ini ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu -ENV XPY_RUN test distcheck +ENV SCRIPT python2.7 ../x.py test distcheck diff --git a/src/ci/docker/x86_64-gnu-full-bootstrap/Dockerfile b/src/ci/docker/x86_64-gnu-full-bootstrap/Dockerfile index 7c079e45751..206103b92e9 100644 --- a/src/ci/docker/x86_64-gnu-full-bootstrap/Dockerfile +++ b/src/ci/docker/x86_64-gnu-full-bootstrap/Dockerfile @@ -25,4 +25,4 @@ ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENV RUST_CONFIGURE_ARGS \ --build=x86_64-unknown-linux-gnu \ --enable-full-bootstrap -ENV RUST_CHECK_TARGET "" +ENV SCRIPT python2.7 ../x.py build diff --git a/src/ci/docker/x86_64-gnu/Dockerfile b/src/ci/docker/x86_64-gnu/Dockerfile index 9d8b75c80c7..6919487e17c 100644 --- a/src/ci/docker/x86_64-gnu/Dockerfile +++ b/src/ci/docker/x86_64-gnu/Dockerfile @@ -23,4 +23,4 @@ RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-ini ENTRYPOINT ["/usr/bin/dumb-init", "--"] ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu -ENV RUST_CHECK_TARGET check +ENV SCRIPT python2.7 ../x.py test && python2.7 ../x.py dist diff --git a/src/ci/docker/x86_64-musl/Dockerfile b/src/ci/docker/x86_64-musl/Dockerfile index 49954157ec0..11b85a6c8fd 100644 --- a/src/ci/docker/x86_64-musl/Dockerfile +++ b/src/ci/docker/x86_64-musl/Dockerfile @@ -29,6 +29,7 @@ RUN curl -L https://api.pub.build.mozilla.org/tooltool/sha512/$SCCACHE_DIGEST | ENV RUST_CONFIGURE_ARGS \ --target=x86_64-unknown-linux-musl \ --musl-root-x86_64=/musl-x86_64 -ENV RUST_CHECK_TARGET check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu ENV PATH=$PATH:/musl-x86_64/bin -ENV XPY_CHECK test --target x86_64-unknown-linux-musl +ENV SCRIPT \ + python2.7 ../x.py test --target x86_64-unknown-linux-musl && \ + python2.7 ../x.py dist --target x86_64-unknown-linux-musl diff --git a/src/ci/run.sh b/src/ci/run.sh index 3dc3cf91501..737c3622c69 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -43,14 +43,10 @@ else ncpus=$(nproc) fi -if [ ! -z "$XPY_RUN" ]; then - exec python2.7 $SRC/x.py $XPY_RUN +if [ ! -z "$SCRIPT" ]; then + sh -x -c "$SCRIPT" else make -j $ncpus tidy make -j $ncpus - if [ ! -z "$XPY_CHECK" ]; then - exec python2.7 $SRC/x.py $XPY_CHECK - else - exec make $RUST_CHECK_TARGET -j $ncpus - fi + make $RUST_CHECK_TARGET -j $ncpus fi |
