sudo: required

services:
  - docker
  
language: rust

rust:
  - nightly
  - stable

cache: cargo

addons:
  apt:
    packages:
    - libxxf86vm-dev

install:
  - |
      if [ $TRAVIS_OS_NAME = osx ]; then
        rustup target add x86_64-apple-ios
      fi

script:
  - cargo build --verbose
  - if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
  - cargo test --verbose
  - docker run --rm -v "$(pwd):/root/src" -w /root/src tomaka/cargo-apk cargo apk build --verbose

os:
  - linux
  - osx

after_success:
  - |
      [ $TRAVIS_BRANCH = master ] &&
      [ $TRAVIS_PULL_REQUEST = false ] &&
      cargo publish --token ${CRATESIO_TOKEN}

sudo: required

services:
  - docker
  
language: rust

rust:
  - nightly
  - stable

cache: cargo

addons:
  apt:
    packages:
    - libxxf86vm-dev

install:
  - |
      if [ $TRAVIS_OS_NAME = osx ]; then
        rustup target add x86_64-apple-ios
      fi

script:
  - cargo build --verbose
  - if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
  - cargo test --verbose
  - docker run --rm -v "$(pwd):/root/src" -w /root/src tomaka/cargo-apk cargo apk build --example window --verbose

os:
  - linux
  - osx

after_success:
  - |
      [ $TRAVIS_BRANCH = master ] &&
      [ $TRAVIS_PULL_REQUEST = false ] &&
      cargo publish --token ${CRATESIO_TOKEN}

Build the window example for android
Build the window example for android
