-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (35 loc) · 3.02 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
env:
global:
- secure: i2wgp0sdCmwsR6izn2SFvJ0mYes9d2JpfHdoJi4A/s5kkr+u52nmouJQBOZ3rixdtx1WGGzIAKps1mB92/+7W+KgWrJ2g37FCdgL7SmMbw1D6XE/ytF2/jRkILhCXZIieApPp9NCIieXJrT12n4j7xaVlnkVh/NKxTlLznH8YJsbui/Zs2V/ZjhcWBgoQjvwBZ3S4MM47pszLInAciJNW/bJ9NxQ0jrrQB1BIL2XbdqqwospRaebXF2q8YnFqj9VYzafT1KzX4EZj2Kd4+OXNSAy6FDNAxJOoz8DI6B39eu7vlNiUBbQOcZT1XzHDm/J6Ct7B9Uz5cIhVMQSkmijW9gWvlAmhN1/n9kOom6P/qsL6d7HpUpeSf7BI6e5oQudA823djkCr/4PL930vTPmflKJjxZ0ciFp7M15z7ZswPV3O+Ba1SO720KiMOKgXATcMe3O008Nw2uMCxs8gOF0IcFQeEryF8BLSF4wgk+KvAwx3QF+jiAhkDHRx2Pa9NRz5rn6G3+YLmSmaw6UvHVewkAAwAbs+CT8cha6BUA85swsocG49R9XTavOtEZYKS5U0CNNqJ4RsB3k4lvOhHImuAowm6xw7Em/T01e1IquowgMqXNHwIaQwz8B41T0sWuWkIpGLexayIhA6PP/yMNR2b3KGaM289Y5/6etrlzGK0A=
- secure: UfMEd3xCDo+zDFtMtltOgCXuh1692Xkqqw+meTrYqJJcc4FE48rksvzIijbK2UXYYly1PudCQx4SULpDmh3H1uNbqTuDmp4Zn3hkTLCvyTzAayM/C7d/kPP8aMIGofM/Nl9djtlxbyKvU0YDiqD+w+xzjhXWP73mOhyuJhvOwKyBdKpxFbzemU9d4g6Blf+5p8Nn3mzYP71LWk3VmU1Fawf6au14egjviTPv14mL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/HfuU9sHe+TAYDgg2uqmhtW1VL73zH9nyMCupcfURPrXRzgr5Y4kz500hsK4SDnJXDdL8SU=
sudo: required
services:
- docker
language: python
python:
- '2.7'
before_install:
- docker run -d --name db -P -e POSTGRES_DB=openbeta -e POSTGRES_PASSWORD=password docker.io/mdillon/postgis:9.5
- export DB_PORT=$(docker inspect --format='{{(index (index .NetworkSettings.Ports "5432/tcp") 0).HostPort}}' db)
- export DB_HOST=127.0.0.1
install:
- pip install -r requirements.txt
script:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH;
else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- echo "DB_URI=${DB_HOST}:${DB_PORT}"
- pytest
after_success:
- docker build -f Dockerfile -t apiserver:latest .
- docker run -d --name apiserver -p 8000:8000 --link db -e ${DB_HOST} -e ${DB_PORT} apiserver:latest
- sleep 3
- docker logs apiserver
- curl -v http://localhost:8000/routes
deploy:
provider: script
script: scripts/deploy2dockerhub.sh
skip_cleanup: true
on:
branch: master