.travis.yml 674 B
Newer Older
# Request an environment that provides sudo (that goes with larger containers)
# and a minimal language environment.
sudo: true
language: minimal

cache: cargo

Tomasz Drwięga's avatar
Tomasz Drwięga committed
branches:
  only:
  - master

env:
  global:
    - RUST_BACKTRACE=1
  matrix:
    - RUST_TOOLCHAIN=nightly TARGET=wasm
    - RUST_TOOLCHAIN=stable TARGET=native
before_install:
  # Check how much space we've got on this machine.
  - df -h
Tomasz Drwięga's avatar
Tomasz Drwięga committed

script:
  - ./ci/script.sh

after_success:
  - if [ "$TARGET" == "wasm" ] && [ "$TRAVIS_PULL_REQUEST" != "true" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
      ./ci/publish-wasm.sh;

after_script:
  # Check how much free disk space left after the build
  - df -h