forked from gitter-badger/ese-webseite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.59 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Travis CI configuration file to build a Jekyll project
# and deploy the static files to GitHub Pages afterwards
# Maintained by Lutz Thies (https://github.com/7HAL32)
# July 2018
language: ruby
rvm:
- 2.2
sudo: false
# prevent Travis from starting clean everytime to speed up builds
cache:
bundler: true
yarn: true
directories:
- node_modules
before_install:
# use nvm to install npm, as it is only included by Travis CI in node_js projects
- . $HOME/.nvm/nvm.sh
- nvm install
- nvm use
# install yarn (explanation for npm is true here as well)
# for documentation, see https://yarnpkg.com/lang/en/docs/install-ci/#travis-tab
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
- export PATH=$HOME/.yarn/bin:$PATH
before_script:
# run yarn to install our dependencies from package.json
- yarn
script:
# pack libs, fonts, etc. together
- node_modules/.bin/webpack -p
# unfortunately this only works on macOS for now :/
# - bundle exec gemoji extract sources/static/emoji
# use additional config for CI (changes baseurl for GH Pages)
# settings defined in later files overwrite ones from earlier files
- bundle exec jekyll build --config _config.yml,_config_travis.yml
deploy:
# experimental feature to directly deploy static files to GH Pages
provider: pages
# prevent files from being removed
skip_cleanup: true
# set in travis-ci.org dashboard
github_token: $GITHUB_TOKEN
local_dir: site
target_branch: gh-pages
on:
branch: development
env:
global:
# further speed up builds
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true