-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (29 loc) · 963 Bytes
/
.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
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.5.1
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- git clone git@github.com:opengovt/openroads-data.git
- cd openroads-data/db
- make test-db
- cd ../..
- docker-compose stop
- docker-compose rm -f
- docker-compose run api dockerize -wait tcp://db:5432 -timeout 20s npm test
after_script:
- docker-compose stop
- docker-compose rm -f
deploy:
provider: heroku
api_key:
secure: IbmLzkOA2L6+qubaayghZL8XalcMpWhSY0fYxGyAKPg6+nbYI530g98SMXTo6GvxX0UQXKl9cTWgUdYqv4BK21XWU7Xeleui8pO+PE5gIEgxtFf6LMeJQZoVMjqeBkzbBhOFBNCQKOjMZ5WAdu+hmFfsZIMWH9GeJq5I7D9XktU=
app: openroads-api
on:
repo: opengovt/openroads-api
branch: master