forked from illinois-cs241/coursebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 883 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
36
37
38
39
40
dist: xenial
language: python
cache: pip
branches:
only:
- master
matrix:
include:
- name: Wiki Build
python: '3.6'
env: BUILD_FOCUS=WIKI
addons:
apt:
packages:
- pandoc
- name: PDF Build
python: '3.6'
env: BUILD_FOCUS=PDF
addons:
apt:
packages:
- texlive-full
install:
- pip install -r requirements.txt
script:
- bash _scripts/script.sh
before_deploy:
- openssl aes-256-cbc -K $encrypted_0a73d3c4e754_key -iv $encrypted_0a73d3c4e754_iv
-in deploy_wiki.enc -out /tmp/deploy_wiki -d
- openssl aes-256-cbc -K $encrypted_0a73d3c4e754_key -iv $encrypted_0a73d3c4e754_iv
-in deploy_site.enc -out /tmp/deploy_site -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_wiki
- chmod 600 /tmp/deploy_site
deploy:
provider: script
script: bash _scripts/deploy.sh
skip_cleanup: true
on:
branch: master