forked from somasis/musl-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 1.13 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
sudo: required
dist: trusty
notifications:
- email: false
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 -q update
- sudo apt-get remove -y libtidy-0.99-0
- wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb
- sudo dpkg -i tidy-5.4.0-64bit.deb
- sudo apt-get install -y discount linkchecker
- gem install mdl
- npm install -g postcss-cli cssnano autoprefixer
script:
- make check
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 somasis.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git remote add deploy [email protected]:/srv/www/wiki.musl-libc.org'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || git push deploy -vf master'