forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 979 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
services:
- docker
addons:
apt:
packages:
- python-dev
- libssl-dev
- libffi-dev
python:
- "2.7"
install:
- pip install -r requirements/tests.txt
# Environment variables
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
- python manage.py initialize_db -c [email protected]:fossasia
- python manage.py runserver &
# command to run tests
script:
- nosetests tests/unittests -v --with-coverage
- robot tests/robot
# upload coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
- coveralls
- codeclimate-test-reporter
- bash kubernetes/travis/deploy.sh
- bash scripts/push_api_docs.sh
addons:
code_climate:
repo_token: 753e4b10e96f82079b5b1f4f89bb8b68db6ddfb048adaf4b9ee65dcbe9aece34