forked from camsys/oneclick-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (44 loc) · 1.16 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
46
47
48
49
50
51
52
language: ruby
rvm:
- 2.6.9
# https://docs.travis-ci.com/user/database-setup/#using-postgis
services:
- postgresql
addons:
postgresql: 10
apt:
packages:
- postgresql-10-postgis-2.4
before_install:
- curl ifconfig.co #print IP address
- openssl aes-256-cbc -K $encrypted_ee5f58ad4bd6_key -iv $encrypted_ee5f58ad4bd6_iv -in cpta_aws.pem.enc -out cpta_aws.pem -d
- chmod 600 cpta_aws.pem
before_script:
- pwd
- ls -a
- mv config/database.yml.travis config/database.yml
- mv config/local_env.yml.travis config/local_env.yml
- psql -U postgres -c "create extension postgis"
script:
#- bundle exec /usr/bin/env RAILS_ENV=test rake db:drop
- bundle exec /usr/bin/env RAILS_ENV=test rake db:create
- bundle exec /usr/bin/env RAILS_ENV=test rake db:schema:load
- bundle exec /usr/bin/env RAILS_ENV=test rake db:migrate
- bundle exec /usr/bin/env RAILS_ENV=test rake db:seed
- bundle exec rspec spec
notifications:
slack:
on_success: change
rooms:
- camsys:lXMC55pg5oKxSTYW38zsB9jm#1click
branches:
only:
- master
- develop
- lydia-hopelink-new
deploy:
provider: script
script: bash travis_deploy.sh
skip_cleanup: true
on:
branch: develop