forked from rust-lang-ru/mdBook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
107 lines (98 loc) · 2.97 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
sudo: false
language: rust
env:
global:
- PROJECT_NAME=mdBook
matrix:
include:
# Stable channel
# TODO re-enable the i686-apple-darwin target when passcod/rsnotify#53 is fixed
#- 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
install:
- sh ci/install.sh
script:
- sh ci/script.sh
after_success:
- 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