-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
100 lines (88 loc) · 2.29 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: python
branches:
only:
- master
python:
# - "2.7"
# - "3.3"
# - "3.4"
# - "3.5"
- "3.6"
services:
# - sqlite
- postgresql
# - mysql
env:
# - DJANGO=1.11 DB=sqlite
- DJANGO=1.11 DB=postgresql
# - DJANGO=1.11 DB=mysql
# - DJANGO=2.0 DB=sqlite
- DJANGO=2.0 DB=postgresql
# - DJANGO=2.0 DB=mysql
matrix:
# fast_finish: true
# include:
# - python: "2.7"
# env: TOXENV=flake8
exclude:
# - python: "3.3"
# env: DJANGO=1.11 DB=sqlite
- python: "3.3"
env: DJANGO=1.11 DB=postgresql
# - python: "3.3"
# env: DJANGO=1.11 DB=mysql
# - python: "3.3"
# env: DJANGO=2.0 DB=sqlite
- python: "3.3"
env: DJANGO=2.0 DB=postgresql
# - python: "3.3"
# env: DJANGO=2.0 DB=mysql
# allow_failures:
before_install:
- pip install -q 'flake8<3'
- PYFLAKES_NODOCTEST=1 flake8 tasklist
install:
# - pip install -r requirements.txt
# - pip install sqlite
- PYTHON=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}".format(*version))'`
# - if [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "2" ]]; then pip install -q mysql-python; elif [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "3" ]]; then pip install -q mysqlclient; fi
# - if [[ $DB == postgresql ]]; then pip install -q psycopg2; fi
# - pip install -q Pillow
- pip install -q psycopg2
- IDJANGO=$(python ./travis.py $DJANGO)
- pip install -q $IDJANGO
- pip install -e .
- pip install -q coveralls tox-travis
before_script:
# - mysql -e 'create database test;' -u root
# - mysql -e 'create database taskorganizer;'
- psql -c 'create database taskorganizer;' -U postgres
script:
# - python manage.py test tests/ --pattern="tests_*.py"
# - django-admin.py --version
- tox
# - coverage run --source=tasklist -m py.test
- coverage run --source='.' manage.py test tasklist
- coverage report -m
after_success:
- coveralls
# deploy:
# provider: pages
# local_dir: "./"
# skip_cleanup: true
# github_token: $GH_TOKEN # Set in travis-ci.org dashboard
# target_branch:
# on:
# branch: master
# deploy:
# provider: releases
# api_key: "GITHUB OAUTH TOKEN"
# file_glob: true
# file: directory/*
# skip_cleanup: true
# on:
# tags: true
notifications:
email:
on_success: change
on_failure: change