forked from ForestAdmin/forest-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (35 loc) · 954 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
stages:
- Lint commit messages
- Tests
- Build & Publish
jobs:
include:
- stage: Lint commit messages
language: node_js
node_js: lts/*
before_install:
- nvm install lts/*
- yarn
script: commitlint-travis
- stage: Tests
language: ruby
before_install: gem install bundler -v '1.17.3'
rvm: 2.3.4
script:
- RAILS_ENV=test bundle exec rake test
- RAILS_ENV=test bundle exec rake db:migrate && bundle exec rspec --color --format doc
- stage: Build & Publish
if: branch = master AND type != pull_request
language: node_js
node_js: lts/*
before_install:
- nvm install lts/*
- yarn
script: npx semantic-release
deploy:
provider: rubygems
api_key: $RUBYGEMS_TOKEN
gem: forest_liana
gemspec: forest_liana.gemspec
on:
condition: [ -f ./.trigger-rubygem-release ]