2017-09-03 14:31:15 +00:00
|
|
|
language: rust
|
2016-03-07 23:13:49 +00:00
|
|
|
sudo: false
|
|
|
|
|
2017-09-03 14:31:15 +00:00
|
|
|
cache: cargo
|
2016-03-07 23:13:49 +00:00
|
|
|
|
2017-09-03 14:31:15 +00:00
|
|
|
rust:
|
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
2016-03-07 23:13:49 +00:00
|
|
|
|
2017-09-03 14:31:15 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2016-03-07 23:13:49 +00:00
|
|
|
|
2017-09-03 14:44:49 +00:00
|
|
|
script:
|
|
|
|
- cargo build --verbose
|
|
|
|
- cargo test --verbose
|
|
|
|
|
2015-08-01 13:24:00 +00:00
|
|
|
after_success:
|
2017-09-03 14:31:15 +00:00
|
|
|
# Deploy the docs if the commit is on master
|
2016-08-01 19:26:23 +00:00
|
|
|
- test "$TRAVIS_PULL_REQUEST" == "false" &&
|
|
|
|
test "$TRAVIS_BRANCH" == "master" &&
|
2017-09-03 14:31:15 +00:00
|
|
|
"$TRAVIS_RUST_VERSION" == "stable"
|
2016-03-07 23:13:49 +00:00
|
|
|
npm install stylus nib &&
|
2017-09-03 14:31:15 +00:00
|
|
|
bash ci/deploy.sh
|
2016-03-07 23:13:49 +00:00
|
|
|
|
|
|
|
before_deploy:
|
2017-09-03 14:31:15 +00:00
|
|
|
# Script to create packages from the build artefacts to upload to GitHub
|
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=
|
2017-09-03 14:31:15 +00:00
|
|
|
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.tar.gz
|
2016-03-07 23:13:49 +00:00
|
|
|
# don't delete the artifacts from previous phases
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
2017-09-03 14:31:15 +00:00
|
|
|
condition: $TRAVIS_RUST_VERSION = stable
|
2016-03-07 23:13:49 +00:00
|
|
|
tags: true
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|