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

# run builds for all the trains (and more)
rust:
  - stable
  - beta
  - nightly

branches:
  only:
    - master
# the main build
script:
  - |
      cargo build --features "${FEATURES}" &&
      cargo test --features "${FEATURES}" &&
      cargo doc --features "${FEATURES}"

env:
  matrix:
    - FEATURES=""
    - FEATURES="serde"

matrix:
  include:
    - rust: 1.12.0
      env: FEATURES=""
      before_script:
        - |
          cargo generate-lockfile &&
          cargo update -p serde_json --precise 1.0.0 &&
          cargo update -p serde --precise 1.0.0