-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
57 lines (45 loc) · 1.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=dy-weekly-generator
matrix:
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
before_install:
- set -e
- rustup self update
install:
- source ~/.cargo/env || true
script:
- bash ci/script.sh
after_script: set +e
before_deploy:
- sh ci/before_deploy.sh
deploy:
api_key:
secure: "okvpZgsc9tHlHiLsfhGaDxpllq0tYm3wdGSgBWfqKoSJ7E3qddF5fl0D2NgsmeYUJ1w6G6+Q9cWGtfXTzDb62XykQEZJyuXBkB9AGks/szzO1cdWhMF+tegzZJo2OtR666mXJ/0mP9nqUpjrShHNu3MTVTKy1tdty83OWpLGYRCpLyhRi5BPXXvowoqevN1Q3K4hANO/ZdPgHmVzL1gtQCzF3n3M1wcjtpj+LADjnuMjJYGlOkyMRn7DmsseAt+Zi2H05iXDM4mJKeQO3r2akRNqjD6OIfXX8ONF355cMc4EB4a0J8SUgIm0D2mzlt9Ebyb7kuyrm+5BGBr9/dv2d0G+07tvp5uddFLPMNOwdpNen5bjbpSz6duXCq+8ECBZlyfG0ENL5i3laGxTcPYGBLIdAtwzDbmo8phOtM/IyHm66SlgsGH3oWDBhNvMOiO+HObrXi6cILQJhx8QcBHY4O4/aL+IZGjvyNV30LyBkvyYxHoAw9P1aJMxS0QHqH7F40EJOLd4GDn8cyb0yGEtFDC8fOkEAvXUJXUw/Doar0CDMH2DLlAX0LtwJh5hgpq0TKcDFcnvhAkM7eeu5JAvW5+la6HflFMTVFxHBkDZoJS0gfXtoTu88DJBY8l0RTZZWnIrN+M2ZqzJn3adFRSUD+NyfWtHNJNWPyA2nnsk+Hs="
file_glob: true
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
branches:
only:
# release tags
- /^v\d+\.\d+\.\d+.*$/
- master