-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
29 lines (29 loc) · 1.44 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
language: c
install:
- sudo FORCE_ADD_APT_REPOSITORY=1 add-apt-repository ppa:pharo/stable
- sudo apt-get update
- sudo apt-get install pharo-vm-core:i386
before_script: ./download.sh
script: ./compile.sh
after_success:
- ./compile.sh chapters
- git checkout "${TRAVIS_BRANCH}"
- git remote rm origin
- git remote add origin https://BenjaminVanRyseghem:${GH_TOKEN}@github.com/SpecForPharo/documentation.git
- git config user.email "${GIT_EMAIL}"
- git config user.name "${GIT_NAME}"
- if [[ ! -d output ]]; then mkdir output; fi
- if [[ ! -d output/chapters ]]; then mkdir output/chapters; fi
- mv book.md output/book.md
- cp -r figures output/
- cp -r figures output/chapters/
- mv *.md output/chapters/
- git add output
- git add -f output/chapters
- git commit -m "Generate Markdown output"
- git push https://BenjaminVanRyseghem:${GH_TOKEN}@github.com/SpecForPharo/documentation.git "${TRAVIS_BRANCH}"
env:
global:
- secure: hrlMJ2D+F5pth+ZRq6frLZdSyW2ZFpPJLlJzj7Ox7zQqloJLGdPvKCDG6EvVIrHxXmnV4MBWjaO3f632lPtjnAg0vzMnU8Q38Md83QaMqvxss+OrLqq2GkpRhY5aodY64wxwxbdVoIf725sXQqujXspqKxUh5nerWRXdTaHAghY=
- secure: NsKYNrB+qfz8pyIpsPL4w9pFsJog5+5wTMKe1HT47MoHTDrV1cIgVWJQJq2wkui0bTqScRNOjqXZPLP7J7CHBan60VQn+MYkZ8FHBuVzaxDD30nMFYt1Jz7SApvUR1k5nOftIhq00XTU+T211eCRGPyHdEICj8HxtZUHD3s8Mxo=
- secure: q4dOauqVnxTHDRLeugSBBuYdizQsIjYeu24frl/qDiZurEg7peg/LP+rUbkuwozRLRzta7t7KVcqcEkcLtIsaZMp2xv3JDFPnJ68fLaKmOmSmOHQ5T9oqSiWGo20uYf5hluCF541hIq8izGG8sDYsjCuj8HmiUb0X367jmr+iCs=