forked from somasis/musl-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.28 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
sudo: required
dist: trusty
notifications:
- email: false
# oh my god travis' discount package is so OLD.
before_install:
- 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" ] || openssl aes-256-cbc -K $encrypted_6c58d1d9a0be_key -iv $encrypted_6c58d1d9a0be_iv -in .travis.id_rsa.enc -out id_rsa -d >/dev/null 2>&1'
- '[ "${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 wiki.musl-libc.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git remote add deploy muslwiki@wiki.musl-libc.org:/srv/www/wiki.musl-libc.org.git'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git push deploy -vf master'