-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (41 loc) · 1.01 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
# .travis.yml
# This file should be at the root of your project
#
language: ruby
rvm:
- 2.6.3
cache:
bundler: true
# directories:
# - $TRAVIS_BUILD_DIR/tmp/.htmlproofer
before_install:
- gem install bundler
gemfile: Gemfile
branches:
only:
# Change this to gh-pages if you're deploying using the gh-pages branch
- main
- /.*/
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
- JEKYLL_ENV=production
git:
lfs_skip_smudge: true
script:
- if [ "$TRAVIS_BRANCH" = "main" ]; then
bundle exec rake algolia build test;
fi
- if [ "$TRAVIS_BRANCH" != "main" ]; then
bundle exec rake build test;
fi
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
# keep-history: false
# local_dir: _site
# # repo: luispuerto/luispuerto.net # in case I wanted to build my page in other repo
# target-branch: gh-pages
# on:
# branch: master