Skip to content
Snippets Groups Projects
.travis.yml 6.62 KiB
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
        - shellcheck 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