-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
46 lines (41 loc) · 1.73 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
language: ruby
rvm:
- ruby-2.0.0
env:
- secure: "YkIdCFC4cSej6LwLCJMKuznNuFNhh8JEi4nFki6WpcHaDnkpyKfUunaj/x1qASEQyiCkb5riINTN/uYDzF8XWGaVurOhLSEFh6NrNuNQum/YyvEXhtWjwbrzsDd4KJYcuyClRAp8tdkN2oKchWAd/N0XA8rUSyfPjrCbGMgeUZY="
addons:
postgresql: "9.3"
before_install:
- sudo apt-get update
# Can use the following for debugging to find where geos/proj are installed
# - sudo find / -name "geos"
# - sudo find / -name "proj"
# - ls /usr/share/proj
# - ls /usr/bin/proj
# - sudo find / -name "gdal"
# - ls /usr/share/gdal
- sudo apt-get install -qq libgeos-dev libproj-dev
- sudo apt-get -qq install libgeos++-dev
# Can use the following for debugging to find where geos/proj are installed
# - sudo find / -name "geos"
# - ls /usr/include/geos
# - sudo find / -name "proj"
# - ls /usr/share/proj
# - ls /usr/bin/proj
# - sudo find / -name "gdal"
# - ls /usr/share/gdal
- sudo apt-get install pdftk
# Create tmp folder for test
- mkdir tmp
before_script:
# Since GEOS is installed in /usr/include and PROJ is already installed in /usr/share/proj
# Need to re-install rgeo so it can link to the correct paths
- gem uninstall rgeo
- gem install rgeo -- --with-geos-dir=/usr/include/geos --with-proj-dir=/usr/share/proj
- psql -c 'create database "homebase_test";' -U postgres
- psql -c "create extension postgis;" -U postgres -d homebase_test
- bundle exec rake db:migrate RAILS_ENV=test
env:
- secure: "YkIdCFC4cSej6LwLCJMKuznNuFNhh8JEi4nFki6WpcHaDnkpyKfUunaj/x1qASEQyiCkb5riINTN/uYDzF8XWGaVurOhLSEFh6NrNuNQum/YyvEXhtWjwbrzsDd4KJYcuyClRAp8tdkN2oKchWAd/N0XA8rUSyfPjrCbGMgeUZY="
notifications:
webhooks: http://project-monitor.codeforamerica.org/projects/98138ce2-1d31-4eac-91b8-55e763474cc9/status