File: .travis.yml

package info (click to toggle)
rust-num-cpus 1.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 132 kB
  • sloc: makefile: 2
file content (67 lines) | stat: -rw-r--r-- 1,758 bytes parent folder | download | duplicates (2)
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
language: rust
rust: stable
dist: trusty
sudo: false

cache: cargo

install:
  - if [ -z "$NO_ADD" ]; then rustup target add "$TARGET"; fi

script:
  - cargo build --verbose --target "$TARGET"
  # Only run the targets if we are on the same OS.
  - if [ "$RUN" == "1" ]; then cargo test --verbose --target "$TARGET"; fi

env:
  global:
    # Travis CI servers make 2 cores available to processes via virtualization.
    # See https://docs.travis-ci.com/user/reference/overview/
    - NUM_CPUS_TEST_GET=2

matrix:
  include:
    # Linux
    # 32-bit requires multilib.
    - env: TARGET=i686-unknown-linux-gnu RUN=1
      addons:
        apt:
          packages:
            - gcc-multilib
    # 64-bit stable.
    - env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
      rust: stable
    # 64-bit beta.
    - env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
      rust: beta
    # 64-bit nightly.
    - env: TARGET=x86_64-unknown-linux-gnu RUN=1 NO_ADD=1
      rust: nightly
    # Mac OS X
    - os: osx
      env: TARGET=i686-apple-darwin RUN=1
    - os: osx
      env: TARGET=x86_64-apple-darwin RUN=1 NO_ADD=1
    # Android
    # - for x86
    - env: TARGET=i686-linux-android
    - env: TARGET=x86_64-linux-android
    # - for ARM
    - env: TARGET=arm-linux-androideabi
    - env: TARGET=aarch64-linux-android
    # IOS
    - os: osx
      osx_image: xcode9
      env: TARGET=i386-apple-ios
    - os: osx
      osx_image: xcode9
      env: TARGET=x86_64-apple-ios
    # FreeBSD
    - env: TARGET=x86_64-unknown-freebsd
    # Fuchsia
    # FIXME: figure out why target is missing and re-enable
    #- env: TARGET=x86_64-unknown-fuchsia
    # NetBSD
    - env: TARGET=x86_64-unknown-netbsd
    # Emscripten
    - env: TARGET=asmjs-unknown-emscripten