forked from up-for-grabs/up-for-grabs.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 791 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
language: ruby
cache: bundler
rvm:
- 2.4.3
sudo: false
services:
- docker
install:
# install a recent version of Node
- nvm install 12.8.1
# install a recent version of yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.17.3
- export PATH="$HOME/.yarn/bin:$PATH"
# install Ruby dependencies for building the site
- bundle install
# install Node dependencies for JS tooling
- yarn install
script:
- bundle exec jekyll build
- ruby scripts/cibuild.rb
- docker build .
- yarn lint
- yarn test
- yarn prettier
branches:
only:
- gh-pages # test the gh-pages branch
- /pages-(.*)/ # test every branch which starts with "pages-"
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer