-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (41 loc) · 1.06 KB
/
.travis.yml
File metadata and controls
48 lines (41 loc) · 1.06 KB
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
language: cpp
dist: focal
branches:
except:
- continuous
before_install:
- sudo apt-get install --assume-yes
cmake
texlive-fonts-extra
texlive-fonts-extra-links
texlive-fonts-recommended
texlive-latex-base
texlive-latex-extra
texlive-latex-recommended
texlive-plain-generic
before_script:
- export SHORT_COMMIT=$(git rev-parse --short HEAD)
script:
- mkdir build
- cd build
- cmake ..
- make
- mv counting-in-c++.pdf counting-in-c++-wip.pdf
before_deploy:
- if [ "$TRAVIS_BRANCH" != "master" ]; then exit; fi
- git config --local user.name "Travis CI"
- git config --local user.email "builds@example.com"
- git remote add origin-oauth
$(git config remote.origin.url | sed "s/\(https:\/\/\)/\1$GITHUB_TOKEN@/")
- git tag --force continuous
- git push origin-oauth --tags --force
deploy:
provider: releases
token: $GITHUB_TOKEN
edge: true
file: counting-in-c++-wip.pdf
overwrite: true
release_notes:
- This version is created automatically from the latest commit on master.
on:
branch: master