aboutsummaryrefslogtreecommitdiff
path: root/syn/.travis.yml
blob: a8719ccde410edcc74a9b3bde0cdcedf402ca7f4 (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
language: rust

before_script:
  - set -o errexit

script:
  - shopt -s expand_aliases
  - alias build="cargo build ${TARGET+--target=$TARGET}"
  - build --no-default-features
  - build
  - build --features full
  - build --features 'fold visit visit-mut'
  - build --features 'full fold visit visit-mut'
  - build --no-default-features --features derive
  - build --no-default-features --features 'derive parsing'
  - build --no-default-features --features 'derive printing'
  - build --no-default-features --features 'proc-macro parsing printing'
  - build --no-default-features --features full
  - build --no-default-features --features 'full parsing'
  - build --no-default-features --features 'full printing'
  - build --no-default-features --features 'full parsing printing'
  - build --no-default-features --features 'fold visit visit-mut parsing printing'
  - build --no-default-features --features 'full fold visit visit-mut parsing printing'

matrix:
  include:
    - rust: nightly
      name: Tests
      install:
        - rustup component add rustc-dev
      script:
        - cargo test --all-features --release
    - rust: nightly
    - rust: stable
    - rust: beta
    - rust: 1.31.0
    - rust: nightly
      name: Examples
      script:
        - cargo check --manifest-path examples/dump-syntax/Cargo.toml
        - cargo check --manifest-path examples/heapsize/example/Cargo.toml
        - cargo check --manifest-path examples/lazy-static/example/Cargo.toml
        - cargo check --manifest-path examples/trace-var/example/Cargo.toml
    - rust: nightly
      name: Codegen
      script:
        - (cd codegen && cargo run)
        - git diff --exit-code
    - rust: nightly
      name: Minimal versions
      script:
        - cargo update -Z minimal-versions
        - cargo build --all-features
    - rust: nightly
      name: Clippy
      script:
        - rustup component add clippy || travis_terminate 0
        - cargo clippy --all-features
    - rust: nightly
      name: WebAssembly
      env: TARGET=wasm32-unknown-unknown
      install:
        - rustup target add "${TARGET}"
    - rust: nightly
      name: WASI
      env: TARGET=wasm32-wasi
      install:
        - rustup target add "${TARGET}"
  allow_failures:
    - rust: nightly
      name: Clippy
  fast_finish: true

env:
  global:
    - RUST_MIN_STACK=20000000