-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (62 loc) · 2.42 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
53
54
55
56
57
58
59
60
61
62
dist: trusty
language: ruby
# Manually handle git submodules
git:
submodules: false
before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
- sudo apt-get purge libgdal1
- sudo apt-add-repository --remove ppa:ubuntugis/ppa -y
- sudo apt-get update
- sudo apt-get install libgdal1h
- sudo apt-get install gdal-bin
- sudo apt-get install libproj-dev
- sudo apt-get install libspatialite-dev --force-yes
- sudo apt-get install libgeos-c1 --force-yes
- echo libgeos-c1 hold | sudo dpkg --set-selections
- echo libgdal1 hold | sudo dpkg --set-selections
- sudo apt-get install libgdal-dev --force-yes
- sudo apt-get install libgdal1-dev --force-yes
- sudo apt-get install postgresql-9.3-postgis-2.3 -f
- psql -c 'create database pp_test' -U postgres
- psql -c 'create database pp_test_backup' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d pp_test
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d pp_test
- curl -s -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.0.1-amd64.deb
- sudo dpkg -i --force-confnew elasticsearch-7.0.1-amd64.deb
- sudo sed -i.old 's/-Xms1g/-Xms128m/' /etc/elasticsearch/jvm.options
- sudo sed -i.old 's/-Xmx1g/-Xmx128m/' /etc/elasticsearch/jvm.options
- echo -e '-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlog4j.skipJansi=true\n-server\n' | sudo tee -a /etc/elasticsearch/jvm.options
- sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
- sudo service elasticsearch start
install:
- nvm install node
- node -v
- npm i -g yarn
- yarn
- bundle install
bundler_args: --without development production staging --jobs=6
rvm:
- 2.6.3
before_script:
- sleep 10
- cp .env.example .env
- RAILS_ENV=test bundle exec rake db:drop db:create db:migrate
notifications:
email:
slack:
secure: PXeuZLPRuD9rEwdwZ3Gq4SIcu1wDrahuKXa9GiP6HHqgDVWvMgLYPzFTrfKOlY27vyaNfUxk4bGiaexf8wR/zOYBkWDMrPLnfyMhfqcWOFj/IK/cqylTQWkjk2I5N2ljfK2lzebz0Tta1MMohVcvAl7Zsfa51uEXHPXMz0Cn6SM=
branches:
only:
- master
- develop
- refresh
addons:
code_climate:
repo_token:
secure: "YsOamnH3K8SwysSe2EKm11Wi+Qi0ZsTMGDL3jD+9uWYWM6+MIFEFY7xJf2psoImHzzMoJE5EYtIbQBNk0WB2dtehdaI29yaQ+5RFoMw+z+M2t119GKE3QgD8W0vlhXWKadVXbSnU3EUCaHn+u2rzFU0jNx/+GCoPuG2ltfJf404="
postgresql: 9.3
services:
- redis-server