.travis.yml 2.7 KB
Newer Older
1
language: minimal
A
Alex Crichton 已提交
2
sudo: required
3
dist: trusty
S
Seo Sanghyeon 已提交
4 5
services:
  - docker
6

A
Alex Crichton 已提交
7
git:
8
  depth: 1
9
  submodules: false
10

11 12
osx_image: xcode8.2

13 14 15 16 17
matrix:
  include:
    # Linux builders, all docker images
    - env: IMAGE=arm-android
    - env: IMAGE=cross
18 19
    - env: IMAGE=dist-arm-unknown-linux-gnueabi
    - env: IMAGE=dist-x86_64-unknown-freebsd
20 21 22
    - env: IMAGE=i686-gnu
    - env: IMAGE=i686-gnu-nopt
    - env: IMAGE=x86_64-gnu
23
    - env: IMAGE=x86_64-gnu-full-bootstrap
24
    - env: IMAGE=x86_64-gnu-aux
25 26
    - env: IMAGE=x86_64-gnu-debug
    - env: IMAGE=x86_64-gnu-nopt
27
    - env: IMAGE=x86_64-gnu-make
28
    - env: IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
29
    - env: IMAGE=x86_64-musl
A
Alex Crichton 已提交
30
    - env: IMAGE=x86_64-gnu-distcheck
31 32 33 34

    # OSX builders
    - env: >
        RUST_CHECK_TARGET=check
35
        RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
36 37
        SRC=.
      os: osx
A
Alex Crichton 已提交
38 39 40
      install: &osx_install_sccache >
        curl -L https://api.pub.build.mozilla.org/tooltool/sha512/d0025b286468cc5ada83b23d3fafbc936b9f190eaa7d4a981715b18e8e3bf720a7bcee7bfe758cfdeb8268857f6098fd52dcdd8818232692a30ce91039936596 |
          tar xJf - -C /usr/local/bin --strip-components=1
41 42
    - env: >
        RUST_CHECK_TARGET=check
43
        RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
44 45
        SRC=.
      os: osx
A
Alex Crichton 已提交
46
      install: *osx_install_sccache
47 48
    - env: >
        RUST_CHECK_TARGET=check
49
        RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin --disable-rustbuild
50 51
        SRC=.
      os: osx
A
Alex Crichton 已提交
52
      install: *osx_install_sccache
53 54 55 56 57
    - env: >
        RUST_CHECK_TARGET=
        RUST_CONFIGURE_ARGS=--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios
        SRC=.
      os: osx
A
Alex Crichton 已提交
58 59 60 61 62 63 64 65
      install: *osx_install_sccache

env:
  global:
    - SCCACHE_BUCKET=rust-lang-ci-sccache
    - AWS_ACCESS_KEY_ID=AKIAIMX7VLAS3PZAVLUQ
    # AWS_SECRET_ACCESS_KEY=...
    - secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
A
arcnmx 已提交
66

A
Alex Crichton 已提交
67
script:
68 69 70 71
  - >
      if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
          echo skipping, not a full build;
      elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
72
          travis_retry git submodule update --init &&
73 74
          src/ci/run.sh;
      else
75
          travis_retry git submodule update --init &&
76 77
          src/ci/docker/run.sh $IMAGE;
      fi
78

79 80 81 82 83
# Save tagged docker images we created and load them if they're available
before_cache:
  - docker history -q rust-ci |
    grep -v missing |
    xargs docker save |
A
Alex Crichton 已提交
84
    gzip > $HOME/docker/rust-ci.tar.gz
85 86
before_install:
  - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
M
Matthew Astley 已提交
87

88 89 90
notifications:
  email: false

91 92 93
cache:
  directories:
    - $HOME/docker