image: ubuntu:vivid

test-stable:
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh
    - grep -v "maud_macros" Cargo.toml > Cargo.toml.new
    - mv Cargo.toml.new Cargo.toml
    - cargo build --release --verbose
    - cargo test --verbose
  artifacts:
    paths:
      - target/doc
      - target/package/maud-pulldown-cmark-*.crate

test-beta:
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
    - travis-cargo build --release --verbose
    - travis-cargo test --verbose
    - travis-cargo package --verbose

test-nightly:
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
    - travis-cargo build --release --verbose
    - travis-cargo test --verbose

image: ubuntu:vivid

test-stable:
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh
    - grep -v "maud_macros" Cargo.toml > Cargo.toml.new
    - mv Cargo.toml.new Cargo.toml
    - cargo build --release --verbose
    - cargo test --verbose
  artifacts:
    paths:
      - target/doc
      - target/package/maud-pulldown-cmark-*.crate

test-beta:
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=beta
    - travis-cargo build --release --verbose
    - travis-cargo test --verbose
    - travis-cargo package --verbose

test-nightly:
  allow_failure: true
  script:
    - apt-get install -y curl
    - curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
    - travis-cargo build --release --verbose
    - travis-cargo test --verbose

Allow nightly build to fail
Allow nightly build to fail
