forked from rubyforgood/partner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (37 loc) · 1.61 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
dist: xenial
language: ruby
sudo: required
services:
- postgresql
addons:
chrome: stable
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
bundler_args: "--without production"
jobs:
include:
- stage: test
env:
- DIAPERBANK_ENDPOINT=https://diaper.test
- DIAPERBANK_KEY=diaperkey
- RUBYOPT='-W:no-deprecated -W:no-experimental'
script:
- bundle exec rubocop
- export RAILS_ENV=test
- bundle exec rake db:create db:migrate
- bundle exec rspec
after_success:
- if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "main" ]; then
openssl aes-256-cbc -k $DEPLOY_KEY -in config/deploy_id_rsa_enc_travis -d -a -out config/deploy_id_rsa -d;
chmod 600 config/deploy_id_rsa;
eval `ssh-agent -s`;
ssh-add config/deploy_id_rsa;
BRANCH=main bundle exec cap staging deploy;
ssh-agent -k;
fi
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=