-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (53 loc) · 1.52 KB
/
.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
54
55
56
57
58
59
60
61
62
63
language: python
sudo: required
python:
# - "3.3"
- "3.4"
# - "3.5"
# default user for accessing the local PostgreSQL server
# is postgres and doesn’t have a password set up.
# services:
# - postgresql
# because travis docs says the default is postgresql 9.1
# so select version build expects to be running
# addons:
# - postgresql: "9.4"
# Later learn to use env
# dependencies
install:
#- "pip install -U setuptools"
- "pip install -U pip"
# - "pip install -U wheel"
- "pip install -r requirements/testing.txt --download-cache $HOME/.pip"
cache:
directories:
- $HOME/.cache/pip
# If you need to set the screen size and pixel depth,
# you need to start xvfb with the start-stop-daemon
# utility and not with the init script in the previous example.
#before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# - sleep 3 # give xvfb some time to start
# - psql -c 'create database travis_ci_test;' -U postgres
# - python manage.py makemigrations
# - python manage.py migrate
# command to run tests
script:
- "python3 manage.py test"
# - phantomjs testrunner.js
## after installing coverage
#script:
# - "coverage run source='.' manage.py test"
# - "coverage report --omit="*settings*, *test* --fail-under=85" # *85 cove
# Look at these later. Eventually get it to upload to the
# droplet & do some sphinx/RTDs
# before_deploy
# deploy
# after_deploy
# after_script
# eventuall add this part
# branches:
# only:
# - master
# - deploy