forked from somasis/musl-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 1.24 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
sudo: required
dist: trusty
notifications:
- email: false
# oh my god travis' discount package is so OLD.
before_install:
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || openssl aes-256-cbc -K $encrypted_481248b6289f_key -iv $encrypted_481248b6289f_iv -in .travis.id_rsa.enc -out id_rsa -d'
- sudo apt-get -qq update
- sudo apt-get install -y linkchecker
- gem install mdl
- wget http://www.pell.portland.or.us/~orc/Code/discount/discount-2.2.2.tar.bz2
- tar xf discount-2.2.2.tar.bz2
- cd discount-2.2.2
- ./configure.sh --prefix=/usr/local --enable-all-features --with-fenced-code
- make -j2
- sudo make install
- cd ..
- rm -rf discount-2.2.2
script:
- make lint
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || eval "$(ssh-agent -s)"'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || chmod 600 id_rsa'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ssh-add id_rsa'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || echo -e "Host somas.is\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git remote add deploy [email protected]:/srv/http/wiki.musl-libc.org.git'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git push deploy -vf master'