---
language: rust
matrix:
include:
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu
- os: osx
rust: stable
env: TARGET=x86_64-apple-darwin
- os: linux
rust: 1.40.0
env: TARGET=x86_64-unknown-linux-gnu
- os: osx
rust: 1.40.0
env: TARGET=x86_64-apple-darwin
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu DEPLOY_TARGET=github-pages
if: tag IS present
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu DEPLOY_TARGET=cargo-publish
if: tag IS present
sudo: required
before_install:
- ci/before_install.sh
env:
global:
- HOST=x86_64-unknown-linux-gnu
- PROJECT_NAME=unveil
install:
- if [[ $TRAVIS_OS_NAME = linux && $HOST != $TARGET ]]; then rustup target add $TARGET; fi
script:
- ci/build.sh
before_deploy:
- ci/before_deploy.sh
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file:
- $PROJECT_NAME-$TRAVIS_TAG-$TARGET.*
- $PROJECT_NAME*.deb
skip_cleanup: true
on:
tags: true
condition: $DEPLOY_TARGET != cargo-publish && $DEPLOY_TARGET != github-pages
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: demo/public
keep_history: false
on:
tags: true
condition: $DEPLOY_TARGET == github-pages
- provider: cargo
skip_cleanup: true
token: $CARGO_TOKEN
on:
tags: true
condition: $DEPLOY_TARGET == cargo-publish
notifications:
email:
on_success: never