-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
53 lines (45 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
language: python
notifications:
email: false
# Download SSH key, so we can commit HTML slides to gh-pages branch
before_install:
- openssl aes-256-cbc
-K $encrypted_753ebdfe5ffa_key
-iv $encrypted_753ebdfe5ffa_iv
-in config/travisci_rsa.enc
-out config/travisci_rsa
-d
- chmod 0600 config/travisci_rsa
- cp config/travisci_rsa ~/.ssh/id_rsa
# We can't use Docker infrastructure because we need to install fonts
# sudo: false
# addons:
# apt:
# packages:
# - pandoc
# - python3
# - ttf-mscorefonts-installer
# Install fonts and pandoc
before_script:
- sudo apt-get update
# Install fonts
- echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
- sudo apt-get install ttf-mscorefonts-installer
- sudo mkfontdir
# We don't build pandoc from sources, because it takes too much time
# - sudo apt-get install haskell-platform
# - cabal update
# - cabal install pandoc
# - export PATH=~/.cabal/bin:$PATH
# We download prebuilt relocatible binary instead (from a personal Google Drive folder)
- wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=0B8BBkrQIoSbjc0YtODdQN3VJaDg' -O ~/pandoc
- chmod +x ~/pandoc
- export PATH=~:$PATH
- pandoc -v
# Check Markdown and generate HTML slides
script:
- ./slides/slidy-scripts/slides-py/check.py
- ./slides/slidy-scripts/gen_slides.sh
# Publish generated HTML to gh-pages
after_success:
- ./config/publish-html