2017-03-23 10:53:26 +00:00
|
|
|
dist: trusty
|
2017-03-08 04:21:45 +00:00
|
|
|
language: rust
|
2017-03-23 10:53:26 +00:00
|
|
|
services: docker
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CRATE_NAME=gutenberg
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Linux
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
# OSX
|
|
|
|
- env: TARGET=x86_64-apple-darwin
|
|
|
|
os: osx
|
|
|
|
|
|
|
|
# Testing other channels
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: beta
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
|
|
rust: nightly
|
2017-11-20 17:20:54 +00:00
|
|
|
# The earliest stable Rust version that works
|
|
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
2018-07-22 14:23:40 +00:00
|
|
|
rust: 1.27.0
|
2017-03-23 10:53:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
before_install: set -e
|
2017-03-08 04:21:45 +00:00
|
|
|
|
2017-03-23 10:53:26 +00:00
|
|
|
install:
|
|
|
|
- sh ci/install.sh
|
|
|
|
- source ~/.cargo/env || true
|
|
|
|
|
|
|
|
script:
|
|
|
|
- bash ci/script.sh
|
|
|
|
|
|
|
|
after_script: set +e
|
|
|
|
|
|
|
|
before_deploy:
|
|
|
|
- sh ci/before_deploy.sh
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
api_key:
|
2017-03-23 11:00:39 +00:00
|
|
|
secure: X0M1TT06/MHfwaENl+u/K3twBU0BVTQimXfBkHzODWsWC84SGeJPMiovIkuBxq4P7Wk7sIr1d/IINlq0sK40IvI3Xwy95YtpTKcK52ffZjTmHSNExCy+OhW2JefNPOwPI89JWKsmHM1I8FuDRiENTyawVS8akcl1XnQhS3V3a1zEuwpULO+6UwDTauJDRdVenDY7tHxbwYH644djZpKcL3LsPLkv0r0XlWnyH+Lw65/ggUmw63KaZTN+hOYfznXGNjlsv2YSD8lCo7eGGg+WA1rsr1SDOxzMM60OOE2Y4lDo0lX9tPWAxMfltvuouxfZ8Y2II4oNEYQui+AqaZ6CfhjFrfZG5P6QdFcGcjiYhDC+s+R9m+tCtzCcKh+lahxcfwOEo1O9pAsg77XVy5gf9guM++9uhYc54Z7tUeyNyJQVaQHt0drmqqeQWfk8w2YBmTPiJ7mwAbhEU5gISWQBpc9eRM1PiOaWDOJHgyV1rZfOT6RxgKBu5DW4pSZ6Iar7Qc+u4ei80QRI2jVsnlPY8/5rl/z0fqSnOen/wyGQHNI18SwXiy0TbN8aMpwr9tllOBYtjrWoX4xCj8NJksl1EAYaE2Cwy768mSfO9FTMqGQpuG5S6M9BRsG5pOtZdKpxjyP8vJ1ahp8KDI9Mz8QJSfG6kOHXqCaed+MmJNxJYI0=
|
|
|
|
file_glob: true
|
2017-03-23 10:53:26 +00:00
|
|
|
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
|
|
|
|
on:
|
|
|
|
condition: $TRAVIS_RUST_VERSION = stable
|
|
|
|
tags: true
|
|
|
|
provider: releases
|
|
|
|
skip_cleanup: true
|
|
|
|
|
|
|
|
cache: cargo
|
|
|
|
before_cache:
|
|
|
|
# Travis can't cache files that are not readable by "others"
|
|
|
|
- chmod -R a+r $HOME/.cargo
|
2017-03-08 04:21:45 +00:00
|
|
|
|
2017-03-23 10:53:26 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
# release tags
|
|
|
|
- /^v\d+\.\d+\.\d+.*$/
|
|
|
|
- master
|
2017-03-23 11:00:39 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|