-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (43 loc) · 1.82 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
language: clojure
dist: trusty
lein: lein
jdk:
- openjdk8
cache:
directories:
- "$HOME/.m2"
before_install:
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.4.0/elasticsearch-2.4.0.deb
&& sudo dpkg -i --force-confnew elasticsearch-2.4.0.deb && sudo service elasticsearch
restart
- mkdir -p $HOME/.lein
- touch $HOME/.lein/profiles.clj
- echo '{:user {:dependencies [[org.clojure/clojure "1.8.0"] [potemkin "0.4.5"]]}}'
> $HOME/.lein/profiles.clj
before_script:
- psql -c 'CREATE DATABASE kulu_backend_test;' -U postgres
- psql -d kulu_backend_test -c 'CREATE extension "uuid-ossp";' -U postgres
# Sleep for 10 seconds to allow elasticsearch to boot up before tests.
- sleep 10
env:
global: PGPORT = 6666 DATABASE_URL = postgres://$USER:@localhost:$PGPORT/kulu_backend_test
script: lein test
branches:
only:
- master
notifications:
email:
on_success: never
on_failure: always
services:
- elasticsearch
addons:
postgresql: '9.6'
deploy:
provider: heroku
run:
- "$DATABASE_URL lein clj-sql-up migrate"
api_key:
secure: uCm3CifmfpmK2N5ceQ0/smdFPspAIi0rKzbFa/1QbBHdepQ3k8nTvl0zcP7n2T0D4VcK6ivmaK4gkOfoUZ6JeX15s75RKfuG9ldvJUw8kxBueDqyDgQmu4PgD1jlgBTqN2SZv1CupKtNEVhc/c2PoOh+2IvMO/UUe1XVeF6tlwAtvoxwEqy9UWKyLuRmun5s9PFgYIm5INQAASr6pIzwBVyg4JZpcm82YSUBB11mmOPBIT1OLKINlBB0720j8x7ovfdhCxRFnhcu3dmag2mIASO7t6Dz3R6fiY8u5g39aKtz1mcQOXxEOkU2GH53WDqU9+Ia1W/BOzU76j+eVQD40DXOVoF4EAt2Ln9rBubKs8hcHqpQOTKT4+BrfbgIOizmWUBPzX06P4Tp5twWav0bMipRSrFR9VReZWdZYsKXsjLl/ErIHH2uvSlrsS6QTuQ3lY35D47mmX6VnUt8+Lm7WqnMrbmPW0S8S8GizrWxmBon1H1Ca6yQ+lF+fMYDsgYg43L75IdplCfCrLjJQsiLneBXJDg1yAtf9y+dNX1h201oaYmLHRMHp2FQzld1SEd8QDTbntqQkqFz9ALVPlSXcSj2K3Khwx/6n8yK+yAog0VdFARFqCKDS5OmBDk7Tze725qqMp4ojKdKaujvcK4HT6KVg6rJDsYPPvpFixvG+1M=
on:
branch: master