-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (30 loc) · 1016 Bytes
/
.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
sudo: required
services:
- docker
language: ruby
branches:
only:
- master
before_install:
- shopt -s expand_aliases
install:
- docker pull lakruzz/jekyll-plus
- alias jekyll='docker run -it -v $(pwd):/app:rw --workdir /app lakruzz/jekyll-plus jekyll'
- docker pull 18fgsa/html-proofer
- alias htmlproofer='docker run -it -v $(pwd):/site --workdir /site 18fgsa/html-proofer'
- git config user.name "Travis CI by @Lakruzz"
- git config user.email "[email protected]"
- git config --global push.default simple
before_script:
script:
- jekyll build
- htmlproofer --disable-external --check-favicon --check-opengraph ./_site
after_success:
- sudo chown -R travis:travis _site
- echo "Built with jekyll from $(git rev-parse --short HEAD) of lakruzz/lakruzz.com" > _site/version.txt
- cd _site
- git init
- git remote add ghpages https://$(printenv GHTOKEN)@github.com/lakruzz/lakruzz.github.io.git
- git add -A .
- git commit -F version.txt
- git push -f ghpages master