-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (27 loc) · 1.16 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
dist: trusty
sudo: required
language: generic
before_script:
- sudo add-apt-repository --yes ppa:ubuntu-lxc/stable
- sudo apt-get -qq update
- sudo apt-get install --yes lxc
- sudo lxc-create -n arch -t download -- --dist archlinux --release current --arch amd64
- echo "lxc.mount.entry = $PWD travis none bind,create=dir 0 0" | sudo tee --append /var/lib/lxc/arch/config
- sudo lxc-start -dn arch
- sudo lxc-wait -n arch -s RUNNING
script:
- sudo lxc-attach -n arch -- pacman -Syu --noconfirm
- sudo lxc-attach -n arch -- pacman -S --noconfirm python texlive-core texlive-latexextra texlive-genericextra biber ttf-linux-libertine texlive-bibtexextra ttf-dejavu pygmentize jre9-openjdk make
- sudo lxc-attach -n arch -- bash -c 'for file in /etc/profile.d/*.sh; do source "${file}"; done && cd /travis && make'
- sudo lxc-attach -n arch -- bash -c 'cd /travis && mv main.pdf $(date +"BT_Franc_Martin_%Y-%m-%d_%H:%M_$TRAVIS_COMMIT.pdf")'
before_deploy:
- export RELEASE_FILE=$(ls BT_Franc_Martin_*.pdf)
deploy:
name: "text"
provider: releases
api_key: "${GH_TOKEN}"
file: "$RELEASE_FILE"
skip_cleanup: true
overwrite: true
on:
branch: master