forked from dart-lang/language
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (34 loc) · 873 Bytes
/
.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
dist: bionic
language: node_js
node_js:
- "node"
before_install:
- |
if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE 'dartLangSpec.tex|.travis.yml|dart.sty|Makefile'; then
npm install -g [email protected]
sudo apt-get update -qq
sudo apt-get install \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
lmodern
else
echo "dartLangSpex.tex wasn't changed; skipping spec PDF build"
exit 0
fi
- echo '* install completed'
script:
- cd specification
- make
- mkdir firebase
- cp dartLangSpec.pdf firebase/DartLangSpecDraft.pdf
deploy:
provider: script
script: cd specification; firebase deploy --project=dart-specification --token $FIREBASE_TOKEN
skip_cleanup: true
on:
repo: dart-lang/language
branch: master
branches:
only:
- master