aboutsummaryrefslogtreecommitdiff
path: root/proc-macro2/.travis.yml
blob: acddb5720a57509d0d12b1d34c5efe4d9516d71e (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
language: rust
sudo: false

matrix:
  include:
    - rust: 1.31.0
    - rust: stable
    - rust: beta
    - rust: nightly
      script:
        - cargo test
        - cargo test --no-default-features
        - cargo test --no-default-features -- --ignored # run the ignored test to make sure the `proc-macro` feature is disabled
        - cargo test --features span-locations
        - RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
        - RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features
        - RUSTFLAGS='-Z allow-features=' cargo test
        - cargo update -Z minimal-versions && cargo build
    - rust: nightly
      name: WebAssembly
      install: rustup target add wasm32-unknown-unknown
      script: cargo test --target wasm32-unknown-unknown --no-run

before_script:
  - set -o errexit

script:
  - cargo test
  - cargo test --no-default-features
  - cargo test --features span-locations
  - RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test
  - RUSTFLAGS='--cfg procmacro2_semver_exempt' cargo test --no-default-features

notifications:
  email:
    on_success: never