-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
57 lines (47 loc) · 1.45 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
57
language: ruby
rvm:
- 2.4.1
install:
- gem install bundler:1.16.2
- .ci/download_db.sh
- cd site/
- bundle install
before_script:
# Set up planet pluto database using our planet configuration file
# More on planet pluto: https://github.com/feedreader
- pluto update planet.ini
# Use our own spinoff of the jekyll gem jekyll-planet to generate posts
# Original gem link: https://github.com/feedreader/jekyll-planet
- ruby ruby_scripts/tool.rb
script:
- JEKYLL_ENV=production bundle exec jekyll build --destination ../out/
# branch blocklist, only for GitHub Pages and db store
branches:
except:
- gh-pages # do not test the gh-pages branch
- db
env:
global:
sudo: false # route your build to the container-based infrastructure for a faster build
cache: bundler # caching bundler gem packages will speed up build
# Optional: disable email notifications about the outcome of your builds
notifications:
email: false
before_deploy:
- mkdir -p planet_db
- cp planet.db planet_db/planet.db
deploy:
- local-dir: out/
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
on:
branch: master
- local-dir: site/planet_db/
provider: pages
skip-cleanup: true
keep-history: true
target-branch: db
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
on:
branch: master