forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (31 loc) · 792 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
language: python
sudo: required
services:
- docker
addons:
apt:
packages:
- python3-dev
- libssl-dev
- libffi-dev
python:
- '3.6'
cache: pip
before-install:
- npm -g install npm@latest
install:
- npm install -g dredd@4.0.0
- pip3 install -r requirements/tests.txt
env:
- APP_CONFIG="config.TestingConfig" PATH=$PATH:${HOME}/google-cloud-sdk/bin
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/all -v --with-coverage
after_success:
- 'bash <(curl -s https://codecov.io/bash)'
- bash scripts/push_api_docs.sh