forked from UCL/rsd-engineeringcourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (59 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
54
55
56
57
58
59
60
61
62
dist: bionic
sudo: required
language: python
python:
- '3.7'
cache:
- pip
- apt
addons:
apt:
packages:
- pandoc
- texlive-latex-base
- texlive-latex-extra
- tree
- texlive-fonts-recommended
- texlive-latex-recommended
- texlive-generic-recommended
- texlive-generic-extra
- texlive-science
- texlive-xetex
- lmodern
- fonts-cmu
- inkscape
- ffmpeg
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
email: [email protected]
keep-history: true
local-dir: _site
verbose: true
on:
branch: master
install:
- pip install --upgrade setuptools wheel
- pip install -r requirements.txt
- pip install git+https://github.com/ucl-rits/greeter.git
- pip install git+https://github.com/rkern/line_profiler.git
- gem install liquid -v 3.0.6
- gem install jekyll -v 3.1.6
- gem install redcarpet
script:
- python -c "import matplotlib.pyplot"
- ls ch04packaging/*ipynb
- make
before_install:
# Remove the MongoDB repo as their GPG key has expired.
# - sudo rm /etc/apt/sources.list.d/mongodb-3.2.list
- openssl aes-256-cbc -K $encrypted_e058bed9e333_key -iv $encrypted_e058bed9e333_iv
-in secrets.tar.enc -out secrets.tar -d
- tar -xvf secrets.tar
- REPO=`git config remote.origin.url`
- SSH_REPO=${REPO/https:\/\/github.com\//[email protected]:}
- eval `ssh-agent -s`
- chmod 600 deploy_key
- ssh-add deploy_key
after_success: