forked from sproogen/modern-resume-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 852 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
39
40
41
42
43
44
45
46
language: ruby
rvm:
- 2.4.2
sudo: false
cache: bundler
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- USER="Travis CI"
- EMAIL="[email protected]"
- GITHUB_REPO="github.com/${TRAVIS_REPO_SLUG}.git"
branches:
only:
- master
- develop
before_install:
- gem install gem-release --pre
- ./scripts/bump-version.sh
script:
- bundle exec jekyll build --config _test/_config.yml
- bundle exec htmlproofer ./_site --disable-external
after_success:
- ./scripts/merge-downstream.sh
before_deploy:
- gem build modern-resume-theme.gemspec
- export RESUME_THEME_GEM=$(ls *.gem)
deploy:
- provider: rubygems
on:
branch: master
api_key: ${RUBYGEMS_TOKEN}
- provider: releases
api_key: ${GITHUB_TOKEN}
skip_cleanup: true
file: "${RESUME_THEME_GEM}"
on:
branch: master