Skip to content

Commit ee92bcc

Browse files
committed
auto deploy documentation on push into master
1 parent e468454 commit ee92bcc

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

.travis.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,43 @@
11
---
2+
# test config on https://config.travis-ci.com/explore
23
language: ruby
34
cache: bundler
5+
before_install:
6+
- gem install bundler -v 2.1.4
7+
stages:
8+
- test
9+
- deploy
410
jobs:
511
include:
6-
- rvm: 2.5.7
12+
- name: "Test Ruby-2.5.7 Rails-6.0"
13+
stage: test
14+
rvm: 2.5.7
715
env: RAILS_VERSION="~> 6.0"
8-
- rvm: 2.5.7
9-
env: RAILS_VERSION="~> 5.0"
10-
- rvm: 2.3.8
16+
before_script: bundle install
17+
script: bundle exec rake test
18+
- name: "Test Ruby-2.5.7 Rails-5.2"
19+
stage: test
20+
rvm: 2.5.7
1121
env: RAILS_VERSION="~> 5.2"
12-
before_install: gem install bundler -v 2.1.4
22+
before_script: bundle install
23+
script: bundle exec rake test
24+
- name: "Test Ruby-2.3.8 Rails-5.2"
25+
stage: test
26+
rvm: 2.3.8
27+
env: RAILS_VERSION="~> 5.2"
28+
before_script: bundle install
29+
script: bundle exec rake test
30+
- name: "Deploy documentation"
31+
stage: deploy
32+
before_script: yarn install
33+
script: yarn docs:build
34+
deploy:
35+
provider: pages
36+
edge: true
37+
verbose: true
38+
cleanup: false
39+
local_dir: docs/.vuepress/dist
40+
token: $GITHUB_TOKEN
41+
keep_history: true
42+
on:
43+
branch: master

0 commit comments

Comments
 (0)