-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (49 loc) · 1.41 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
#!.travis.yml
branches:
only:
- master
dist: bionic
sudo: require
language: bash
env:
global:
- USER="loadays"
- EMAIL="[email protected]"
- REPO="loadays.org"
- GH_REPO="github.com/${USER}/${REPO}.git"
install:
- "sudo apt-get -qq update"
- "sudo apt-get install --no-install-recommends texlive-fonts-recommended texlive-latex-extra texlive-fonts-extra texlive-latex-recommended dvipng latex-beamer"
script:
- export DEBIAN_FRONTEND=noninteractive
- mkdir _build
- pdflatex -output-directory=_build -interaction=nonstopmode -file-line-error -no-shell-escape sponsordoc.tex
- pdflatex -output-directory=_build -interaction=nonstopmode -file-line-error -no-shell-escape sponsordoc.tex
after_success:
- MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT)
- git clone git://${GH_REPO}
- mkdir -p ${REPO}/static/files/
- mv -f _build/sponsordoc.pdf ${REPO}/static/files/
- cd ${REPO}
- git remote
- git config user.email ${EMAIL}
- git config user.name ${USER}
- git add static/files/sponsordoc.pdf
- git commit static/files/sponsordoc.pdf -m "${MESSAGE}"
- git push "https://${GH_TOKEN}@${GH_REPO}" master
deploy:
provider: releases
verbose: true
skip_cleanup: true
keep-history: true
api-key: ${GH_TOKEN}
local-dir: _build
file:
- _build/sponsdoc.pdf
on:
branch: master
notifications:
irc:
channels:
- "irc.frenode.org#loadays"
on_success: change