forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (31 loc) · 743 Bytes
/
.travis.yml
File metadata and controls
42 lines (31 loc) · 743 Bytes
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
dist: bionic
services:
- docker
- redis-server
addons:
apt:
packages:
- python3-dev
- libssl-dev
- libffi-dev
python: 3.7
cache: pip
install:
- pip3 install -r requirements/tests.txt
env:
- APP_CONFIG="config.TestingConfig" SECRET_KEY="super secret key" PATH=$PATH:${HOME}/google-cloud-sdk/bin
before_script:
- ./scripts/test_db.sh
- export DATABASE_URL=postgresql://test@localhost:5433/test
- export TEST_DATABASE_URL=postgresql://test@localhost:5433/test
- bash scripts/test_multiple_heads.sh
script:
- pytest tests -v --cov=.
after_success:
- 'bash <(curl -s https://codecov.io/bash)'
- bash scripts/push_api_docs.sh
branches:
only:
- master
- development