forked from datosgobar/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (45 loc) · 952 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
sudo: required
dist: trusty
addons:
apt:
packages:
- net-tools
- openvpn
services:
- docker
language: python
python:
- "3.6"
env:
- DJANGO_SETTINGS_MODULE=conf.settings.testing NODE_JS_VERSION=v8.11.1
before_install:
- sudo service postgresql stop
- docker-compose pull
- docker-compose build
- docker-compose up -d db kong redis kong_db
- sleep 5
- docker-compose run --rm kong kong migrations up --vv
- docker-compose restart kong
- docker-compose ps
install:
- pip install -r requirements/testing.txt
- nvm install $NODE_JS_VERSION
- nvm use $NODE_JS_VERSION
- npm install
script:
- scripts/eslint.sh
- scripts/flake8.sh
- scripts/jscpd.sh
- scripts/pylint.sh
- scripts/tests.sh
deploy:
- skip_cleanup: true
provider: script
script: scripts/deploy/run_deploy.sh testing
on:
branch: master
- skip_cleanup: true
provider: script
script: scripts/deploy/run_deploy.sh staging
on:
tags: true