-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
40 lines (40 loc) · 1.27 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
language: ruby
rvm:
- 2.5.1
sudo: required
addons:
chrome: stable
services: postgresql
dist: trusty
before_install:
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost
&
before_script:
# include ChromeDriver in PATH
- wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo cp chromedriver /usr/local/bin/
- sudo chmod +x /usr/local/bin/chromedriver
- psql -c 'create database hitchlog_test;' -U postgres
- bundle exec rake db:schema:load RAILS_ENV=test
- bundle exec rake db:migrate RAILS_ENV=test
script:
- bundle exec rspec spec --format progress
- bundle exec cucumber features --format progress
deploy:
provider: heroku
strategy: git
branch:
- develop
- master
app:
master: hitchlog
develop: hitchlog-staging
geomap: hitchlog-staging
api_key:
secure: FFualFIJXLj4TukM6ytjtVpXaao1YYLP4R+LUQBFKiLmyueluXE971xeMt1on1E5fLDF+JNxiZN/umukeIxXcPlVqMB5R50A3AaSvhniJ9YMoW11/qosTOAsDeWNz5tEptlH+ztvTHKm4vToitWn2vqRcYu+ZNuEt+wG3XM4cRY=
run:
- rake db:migrate
env:
global:
secure: MJ5rgPXC+Sfkex0odcngmPz5KYa+sS7KGMg2I07SPyteoSJeVpbn+JgwHFqJyPzwrHMX5TLiOMFbvQ3q1WqflSia5DvvCCIL8WpnFY9tV3c+qq2sfEIppZTMw/M10cW2xZbrwLn8zZHMyTl+ZZk2VeCFO7D9eqkLYmwIT4s3zkU=