forked from rubyforgood/partner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (41 loc) · 1.44 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
dist: xenial
language: ruby
rvm:
- 2.6.2
sudo: true
services:
- postgresql
addons:
chrome: stable
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install:
- gem update --system
- gem install bundler
bundler_args: "--without production"
env:
global:
- secure: H+QARNvkmJFBCyXtwHhRwHnfNUJ1N+maa8cDMg9r34GG6lqDIt+zQGiaEeuopDcd6KemdjrWAYQR4gzHkbkhRaZCDoMxhFysTUcKI+GZrVgDg2EuAqiqXwFvVW3tpSVXU/o27XvL9Q1GIynqtA17TvmwiHgyGpcC50XR+RDx3NzxKPTw3gXoRzxAnFkuwIA9dovMLwGFJxByxRfKgiz4LqIw5+Mv+hpAIvIiRHfeACY2tXfX8FBhsf9zf4ShCRmOSBHFoPwEA8W7/8dNLxqJYhqv6yRysYFCxa6iCbjz+9UdAimsmb43nakUaF/obMK+SBwAEJq0hLOMRzC5pu5lhJSqCQn2J/FdelCMxS742RTkGqS4kBgSiCp+5cayaaG8Gz4/Vez57/6CxGGhhyy4XoxCu9EbPu4/VYNDi4060bEn27SEOzUFJ2808KIPf7bl4vSeRmKxjI8vPNfC8PCa9UaFwHppIe/y0OZr3SpAHsMylkHmOPeQBWvriTzjeLyarE19l9Scrdg8bidTtg3wYzTBvClwbc5sChazLwaVBCK+gK8Bh/vQN3QZYluM1J40+G98eHxyMA4GFcInJiZL2+7S9kTe4xb5xKD8rVZ7+g5WNqR706zcB5QiXohzxuLDDUVQdzS5+38ThI5v4ZxLUGoJY+gTnon2YIrhKEx4IUo=
jobs:
include:
- stage: test
env:
- DIAPERBANK_ENDPOINT=https://diaper.test
- DIAPERBANK_KEY=diaperkey
script:
- export RAILS_ENV=test
- bundle exec rake db:create db:migrate
- bundle exec rake spec
- bundle exec rubocop
deploy:
- provider: script
on:
branch: master
script: ci/deploy-staging.sh
- provider: script
script: ci/deploy-production.sh
on:
tags: true