-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
39 lines (28 loc) · 1.14 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
language: ruby
dist: precise
bundler_args: "--without assets:development:production"
rvm:
- 2.2.3
env:
- RAILS_ENV=test SMS_ACCOUNT_SID=67aa405 SMS_AUTH_TOKEN=9b311c0 SMS_FROM_PHONE_NUMBER=255789454545
addons:
postgresql: "9.5"
before_install:
- sudo apt-get -y update
- psql -c 'create database twaamtaro_test;' -U postgres
- psql -U postgres -d 'twaamtaro_test' -c "create extension postgis"
before_script:
- echo "Building starting on `date`"
- "cp ./.travis.database.yml ./config/database.yml"
script:
- bundle exec rake db:migrate
- psql -U postgres -d 'twaamtaro_test' -c 'alter table mitaro_dar alter column the_geom set data type geometry(MultiLineString,4326);'
- psql -U postgres -d 'twaamtaro_test' -c "INSERT INTO mitaro_dar (gid, the_geom) VALUES ('1', ST_SetSRID(ST_GeomFromText('MULTILINESTRING((-71.160281 42.258729,-71.160837 42.259113,-71.161144 42.25932))'),4326));"
- bundle exec ruby -W0 -Itest test/functional/drains_controller_test.rb --verbose
- bundle exec ruby -W0 -Itest test/functional/drain_claims_controller_test.rb --verbose
cache: bundler
# whitelist
branches:
only:
- master
- development