2016-03-07 23:13:49 +00:00
|
|
|
sudo: false
|
|
|
|
|
2016-04-13 21:48:57 +00:00
|
|
|
language: generic
|
2016-03-07 23:13:49 +00:00
|
|
|
|
2015-08-01 13:24:00 +00:00
|
|
|
env:
|
|
|
|
global:
|
2016-03-07 23:13:49 +00:00
|
|
|
- PROJECT_NAME=mdBook
|
2016-08-01 19:26:23 +00:00
|
|
|
- secure: l3/qEC4krRerllLQzni8j5AjngFi6pluWvBWj//1mJLoIEYwxlQ9mYxEdd9BqccWWFn3K0bVYCVC/64+tP6sRfLkZCe2gPUtwe7ITwCDbapUxmkiRObVJCs5yMQZt6idyhHUDKAXKgNCrusfI2BM3tKGBfRK7Cnn/R/7p/U9+q7D1sgJtUKp6ypVzK6A3jLNp3dFLFI19a5KmbZMVsaa7tOhtdDJjjr7ebsc9z7HMW5/OItiWU3FSauVQQlUMaCiEgFuIG7H7OnBAYWB/gNEtLuwfLqU9UjtWk/njNNRnmJ7m3y5HbQhv5H5F5mJUOq9XFlPLwPwyTeVztSGdQm6k8Pp2pgKBUjY27afBl9BWU+msmN6k0oXfhvIebiBPe/x2udiKeFik1xqOOEU1q9dF0sZiuPxCSM1n7tgWklJ8epgaRQaMPPQw9pO/2H5/ynHCJqBlw6WcdiqWtwAyyr/GEx62u/cg5IVkqb7KLmYsWzjS8wYG4CYs1eIxCw2xPZxP0FGuUXvxTBUPipFze6Z7FqxVauXtVe2D7c1P4738HZP660rmR0GYtHtKLny1QxCCK9sxd9JmcezFCSz4YeQ1od9xc0OzGJ2ullKNGizmGfYmgL6X8faNylLIEdaiHAcY16xV3L0g3fXL1Qg360UHQyj7GIv+0nqQnf+H9xRTTU=
|
2016-03-07 23:13:49 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Stable channel
|
2016-03-27 22:20:17 +00:00
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-apple-darwin CHANNEL=stable
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu CHANNEL=stable
|
2016-03-07 23:13:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: &i686_unknown_linux_gnu
|
|
|
|
- gcc-multilib
|
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin CHANNEL=stable
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu CHANNEL=stable
|
2016-03-07 23:13:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- nodejs
|
2016-08-06 09:39:00 +00:00
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl CHANNEL=stable
|
2016-03-07 23:13:49 +00:00
|
|
|
# Beta channel
|
2016-03-27 22:20:17 +00:00
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-apple-darwin CHANNEL=beta
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu CHANNEL=beta
|
2016-03-07 23:13:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_unknown_linux_gnu
|
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin CHANNEL=beta
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu CHANNEL=beta
|
2016-08-06 09:39:00 +00:00
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl CHANNEL=beta
|
2016-03-07 23:13:49 +00:00
|
|
|
# Nightly channel
|
2016-03-27 22:20:17 +00:00
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-apple-darwin CHANNEL=nightly
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=i686-unknown-linux-gnu CHANNEL=nightly
|
2016-03-07 23:13:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages: *i686_unknown_linux_gnu
|
|
|
|
- os: osx
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-apple-darwin CHANNEL=nightly
|
2016-03-07 23:13:49 +00:00
|
|
|
- os: linux
|
2016-04-13 21:48:57 +00:00
|
|
|
env: TARGET=x86_64-unknown-linux-gnu CHANNEL=nightly
|
2016-08-06 09:39:00 +00:00
|
|
|
- os: linux
|
|
|
|
env: TARGET=x86_64-unknown-linux-musl CHANNEL=nightly
|
2016-08-01 18:05:03 +00:00
|
|
|
|
2015-09-18 10:05:55 +00:00
|
|
|
install:
|
2016-04-13 21:48:57 +00:00
|
|
|
- export PATH="$PATH:$HOME/.cargo/bin"
|
|
|
|
- bash ci/install.sh
|
2016-03-07 23:13:49 +00:00
|
|
|
|
|
|
|
script:
|
2016-04-13 21:48:57 +00:00
|
|
|
- bash ci/script.sh
|
2016-03-07 23:13:49 +00:00
|
|
|
|
2015-08-01 13:24:00 +00:00
|
|
|
after_success:
|
2016-08-01 19:26:23 +00:00
|
|
|
- test "$TRAVIS_PULL_REQUEST" == "false" &&
|
|
|
|
test "$TRAVIS_BRANCH" == "master" &&
|
|
|
|
test "$TARGET" == "x86_64-unknown-linux-gnu" &&
|
|
|
|
test "$CHANNEL" = "stable" &&
|
2016-03-07 23:13:49 +00:00
|
|
|
npm install stylus nib &&
|
|
|
|
bash deploy.sh
|
|
|
|
|
|
|
|
before_deploy:
|
2016-04-13 21:48:57 +00:00
|
|
|
- bash ci/before_deploy.sh
|
2016-03-07 23:13:49 +00:00
|
|
|
|
|
|
|
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:
|
2016-04-13 21:48:57 +00:00
|
|
|
condition: $CHANNEL = stable
|
2016-03-07 23:13:49 +00:00
|
|
|
tags: true
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|