-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.46 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
sudo: required
dist: trusty
language: shell
# Attempt to cache TeX
cache:
edge: true
yarn: true
pip: true
directories:
- /tmp/texlive
- $HOME/.texlive
- $HOME/save
before_install:
- sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main'
- sudo apt-get install python-software-properties
- curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update
- sudo apt-get install --allow-unauthenticated -y -qq aria2 xzdec nodejs yarn pkg-config fuse tup wget python3 python3-pip git
- bash scripts/getPandoc.sh
- bash scripts/firaFonts.sh
- cp scripts/texlive.profile $HOME/texlive.profile
- source ./scripts/TeXLive.sh
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
install:
- sudo yarn global add surge
- sudo pip3 install panflute
- sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
script:
- yarn && tup
# Since Travis has trouble with multiple deployments
after_success:
- surge docs zenyoda.surge.sh
deploy:
provider: pages
local_dir: ./docs
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: master
# deploy:
# provider: surge
# project: ./docs/
# domain: zenyoda.surge.sh