summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6a7ddb386bae00214ac1f644f877ba1ffd76aae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
language: rust
rust: nightly
sudo: required
dist: xenial
services: docker

stages:
  - tools-and-build-and-tier1
  - tier2

matrix:
  include:
    # TOOLS
    - name: "Documentation"
      env: TARGET=x86_64-unknown-linux-gnu
      script: sh ci/dox.sh
      install:
        - travis_retry rustup component add rust-src
        - travis_retry cargo install xargo
      stage: tools-and-build-and-tier1
    - name: "Shellcheck"
      install: true
      script:
        - shellcheck --version
        # FIXME: https://github.com/koalaman/shellcheck/issues/1591
        - shellcheck -e SC2103 ci/*.sh
      stage: tools-and-build-and-tier1
    - name: "Style"
      install: true
      script:
        - rustc ci/style.rs && ./style src
        # Disabled due to rust-lang/rustfmt#3341
        #- |
        #  if rustup component add rustfmt-preview ; then
        #      cargo fmt --all -- --check
        #  fi
      stage: tools-and-build-and-tier1
    - name: "Semver Linux"
      install: travis_retry cargo +nightly install semverver
      script: sh ci/semver.sh
      stage: tools-and-build-and-tier1
    - name: "Semver MacOSX"
      install: travis_retry cargo +nightly install semverver
      script: sh ci/semver.sh
      os: osx
      osx_image: xcode10
      stage: tools-and-build-and-tier1

    # BUILD stable, beta, nightly
    - name: "Build Stable Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: stable
      install: true
    - name: "Build Beta Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: beta
      install: true
    - name: "Build Nightly Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: nightly
      install:
        - travis_retry rustup component add rust-src
        - travis_retry cargo install xargo
    - name: "Build Stable Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: stable
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Beta Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: beta
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Nightly Rust"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: nightly
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Stable Rust 1.13.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.13.0
      install: true
    - name: "Build Stable Rust 1.19.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.19.0
      install: true
    - name: "Build Stable Rust 1.24.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.24.0
      install: true
    - name: "Build Stable Rust 1.25.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.25.0
      install: true
    - name: "Build Stable Rust 1.30.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.30.0
      install: true
    - name: "Build Stable Rust 1.13.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.13.0
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Stable Rust 1.19.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.19.0
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Stable Rust 1.24.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.24.0
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Stable Rust 1.25.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.25.0
      os: osx
      osx_image: xcode10
      install: true
    - name: "Build Stable Rust 1.30.0"
      script: sh ci/build.sh
      stage: tools-and-build-and-tier1
      rust: 1.30.0
      os: osx
      osx_image: xcode10
      install: true
    - env: TARGET=i686-apple-darwin
      os: osx
      osx_image: xcode10
      stage: tools-and-build-and-tier1
    - env: TARGET=i686-unknown-linux-gnu
      stage: tools-and-build-and-tier1
    - env: TARGET=x86_64-apple-darwin
      os: osx
      osx_image: xcode10
      install: true
      stage: tools-and-build-and-tier1
    - env: TARGET=x86_64-unknown-linux-gnu
      stage: tools-and-build-and-tier1
      install: true

    # Tier 2 targets
    - env: TARGET=aarch64-linux-android
      stage: tier2
    - env: TARGET=aarch64-unknown-linux-gnu
      stage: tier2
    - env: TARGET=aarch64-unknown-linux-musl
      stage: tier2
    - env: TARGET=arm-linux-androideabi
      stage: tier2
    - env: TARGET=arm-unknown-linux-gnueabihf
      stage: tier2
    - env: TARGET=arm-unknown-linux-musleabihf
      stage: tier2
    - env: TARGET=asmjs-unknown-emscripten
      stage: tier2
    - env: TARGET=i686-linux-android
      stage: tier2
    - env: TARGET=i686-unknown-linux-musl
      stage: tier2
    - env: TARGET=mips-unknown-linux-gnu
      stage: tier2
    - env: TARGET=mips-unknown-linux-musl
      stage: tier2
    - env: TARGET=mips64-unknown-linux-gnuabi64
      stage: tier2
    - env: TARGET=mips64el-unknown-linux-gnuabi64
      stage: tier2
    - env: TARGET=mipsel-unknown-linux-musl
      stage: tier2
    - env: TARGET=powerpc-unknown-linux-gnu
      stage: tier2
    - env: TARGET=powerpc64-unknown-linux-gnu
      stage: tier2
    - env: TARGET=powerpc64le-unknown-linux-gnu
      stage: tier2
    - env: TARGET=s390x-unknown-linux-gnu
      stage: tier2
    - env: TARGET=sparc64-unknown-linux-gnu
      stage: tier2
    - env: TARGET=wasm32-unknown-emscripten
      stage: tier2
    - env: TARGET=x86_64-linux-android
      stage: tier2
    - env: TARGET=x86_64-unknown-linux-gnux32 OPT="--release"
      stage: tier2
    - env: TARGET=x86_64-unknown-linux-musl
      stage: tier2
    - env: TARGET=wasm32-wasi
      rust: nightly
      stage: tier2
    - name: "Nintendo Switch - build libcore only"
      rust: nightly
      stage: tier2
      install:
        - rustup component add rust-src
        - (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
      script:
        - mkdir -p target
        - cd target
        - wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
        - sudo dpkg -i devkitpro-pacman.deb
        - sudo dkp-pacman -Sy
        - sudo dkp-pacman -Syu
        - sudo dkp-pacman -S -v --noconfirm switch-dev devkitA64
        - export PATH="$PATH:/opt/devkitpro/devkitA64/bin"
        - export PATH="$PATH:/opt/devkitpro/tools/bin"
        - cd ..
        # Pull the target spec up into the current directory and then build
        - mv ci/switch.json switch.json
        - cargo xbuild --target switch.json

  allow_failures:
      - name: "Semver Linux"
      - name: "Semver MacOSX"
      - env: TARGET=wasm32-wasi
      - env: TARGET=powerpc-unknown-linux-gnu
      - env: TARGET=s390x-unknown-linux-gnu

install: travis_retry rustup target add $TARGET

script:
  - cargo generate-lockfile --manifest-path libc-test/Cargo.toml
  - if [[ $TRAVIS_OS_NAME = "linux" ]] && [[ $BUILD_ONLY != "1" ]]; then
      sh ci/run-docker.sh $TARGET;
    else
      sh ci/run.sh $TARGET;
    fi
env:
  global:
    secure: "e2/3QjgRN9atOuSHp22TrYG7QVKcYUWY48Hi9b60w+r1+BhPkTseIJLte7WefRhdXtqpjjUJTooKDhnurFOeHaCT+nmBgiv+FPU893sBl4bhesY4m0vgUJVbNZcs6lTImYekWVb+aqjGdgV/XAgCw7c3kPmrZV0MzGDWL64Xaps="

notifications:
  email:
    on_success: never