2016-03-08 07:13:49 +08:00
|
|
|
sudo: false
|
|
|
|
|
2015-08-01 16:35:09 +08:00
|
|
|
language: rust
|
2016-03-08 07:13:49 +08:00
|
|
|
|
2015-08-01 21:24:00 +08:00
|
|
|
env:
|
|
|
|
global:
|
2016-03-08 07:13:49 +08:00
|
|
|
- PROJECT_NAME=mdBook
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Stable channel
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=i686-apple-darwin
|
|
|
|
rust: stable
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
rust: stable
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: &i686_unknown_linux_gnu
|
|
|
|
- gcc-multilib
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
rust: stable
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: stable
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- nodejs
|
|
|
|
- npm
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
rust: stable
|
|
|
|
# Beta channel
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=i686-apple-darwin
|
|
|
|
rust: beta
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
rust: beta
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_unknown_linux_gnu
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
rust: beta
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: beta
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
rust: beta
|
|
|
|
# Nightly channel
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=i686-apple-darwin
|
|
|
|
rust: nightly
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=i686-unknown-linux-gnu
|
|
|
|
rust: nightly
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_unknown_linux_gnu
|
|
|
|
- os: osx
|
|
|
|
env: TARGET=x86_64-apple-darwin
|
|
|
|
rust: nightly
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: nightly
|
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl
|
|
|
|
rust: nightly
|
|
|
|
|
2015-09-18 18:05:55 +08:00
|
|
|
install:
|
2016-03-08 07:13:49 +08:00
|
|
|
- sh ci/install.sh
|
|
|
|
|
|
|
|
script:
|
|
|
|
- sh ci/script.sh
|
|
|
|
|
2015-08-01 21:24:00 +08:00
|
|
|
after_success:
|
2016-03-08 07:13:49 +08:00
|
|
|
- test $TRAVIS_PULL_REQUEST == "false" &&
|
|
|
|
test $TRAVIS_BRANCH == "master" &&
|
|
|
|
test $TARGET == "x86_64-unknown-linux-gnu" &&
|
|
|
|
test $TRAVIS_RUST_VERSION = "stable" &&
|
|
|
|
npm install stylus nib &&
|
|
|
|
bash deploy.sh
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- sh ci/before_deploy.sh
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: Z1k7WqX7z+tT4+SzTh4tBBzf11VaADB4AWuEczHtylaEb/0hRs8gaiHCNSVHm/QTp0QPWQR2Vw7uKMhVuxG7I8X7h31j3A7ulYBh/iVk0DVIrtrn2Q4WOED9CpoXLuLtk2nxo9MBViFW7mw4nJe9H2Tn9o/9oEYBuwzekvW5mh4muqUuCVTr8eQVYbs3jbC9pQy5oYjOLeUnlL9Cey5VN/nAhzAtyFP+6lIMri0PKit4JtkFou/O1MEpFYlP3VGC2lFiWuByocPKBT/L45FecS9qoHq+i6+ZCPDH2eu46nuYsDbLKAkPdGvf1MdPBPwoj0vSnZbgaTisQ4hIoBngQQQPZlPaGtcdd6g6asxSfnbA9cQhClI5oZJmg+ksxQE+peE8pnbmZ10Ix0PpIkkfWdQeMdUUCQarOTkTK54Munw+X+kp1lH19j6+krQPLBYr95fPRd4b5tWsJD2+pb/UOYFEEJxMNoUHyLCrtdCO7imOwrSUcv51+Z8UudqfPpKQeszrJcntL4owip35r3sF5TsE9YfW5qssLC164IylvP32y1AcfL1jqg8b+zrqLZKanjvDOJ1dtHHuwKqxcwf7PhAf0YjAtVSH9OIYcDzmDa0EMLrq7EK0fs6NAeb5qt6CML7pZrRS3fmOxN53Fbmj81qm6TmjQjDe4dmZlELgNow=
|
|
|
|
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
|
|
|
|
# don't delete the artifacts from previous phases
|
|
|
|
skip_cleanup: true
|
|
|
|
# deploy when a new tag is pushed
|
|
|
|
on:
|
|
|
|
condition: $TRAVIS_RUST_VERSION = stable
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|