forked from OpnTec/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (36 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
language: python
sudo: required
group: edge
services:
- docker
addons:
apt:
packages:
- python-dev
- libssl-dev
- libffi-dev
python:
- '2.7'
before-install:
- npm -g install npm@latest
install:
- npm install -g dredd@4.0.0
- pip install -r requirements/tests.txt
env:
- >-
APP_CONFIG="config.TestingConfig" PATH=$PATH:${HOME}/google-cloud-sdk/bin
CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_script:
- psql -c 'create database test;' -U postgres
- export DATABASE_URL=postgresql://postgres@localhost:5432/test
- export TEST_DATABASE_URL=postgresql://postgres@localhost:5432/test
- bash scripts/test_multiple_heads.sh
- dredd
script:
- nosetests tests/unittests -v --with-coverage
after_success:
- 'bash <(curl -s https://codecov.io/bash)'
- bash scripts/push_api_docs.sh
- bash kubernetes/travis/deploy.sh
- bash kubernetes/travis/deploy-staging.sh
- bash kubernetes/travis/deploy-nextgen.sh