-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
75 lines (66 loc) · 1.79 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
language: python
sudo: false
python:
- "3.5"
- "3.6"
- "2.7"
matrix:
fast_finish: true
allow_failures:
- python: "2.7"
before_install:
- python --version
- uname -a
- lsb_release -a
- sudo apt-get install -y git-flow python-enchant
install:
- pip install -U tox detox setuptools pip cookiecutter tox-travis vex pew pipenv
- pip install "backports.shutil_which ; python_version < '3.4'"
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
- git --version
- python3 -m venv -h
- env
# Wee need to create a virtualenvs folder to fool PEW that is not a new environment
# https://github.com/berdario/pew/blob/cd4ecd6775340ad9dbec37e10b4b3618dc36b49c/pew/pew.py#L59
- export WORKON_HOME=~/.local/share/virtualenvs
- export PACKAGE_NAME=django-reusable-app
- mkdir -p $WORKON_HOME
script:
# If test fail with vague messages, uncomment this and see generation log
- cookiecutter --no-input .
- tox -v
jobs:
include:
- stage: make
script:
- env
- cookiecutter --no-input .
- cd $PACKAGE_NAME
- which python
# - ls -la .pyvenv/bin/
- ls -la $VIRTUAL_ENV/bin
- tox --version
- pwd
- ls -la
- make
- vex $PACKAGE_NAME make bump
- vex $PACKAGE_NAME make lint
- vex $PACKAGE_NAME make test
- make tox
- make detox
- vex $PACKAGE_NAME make coverage
- make dist
- make install
- vex $PACKAGE_NAME make docs
# Lint again after docs generation
- vex $PACKAGE_NAME make lint
- make clean
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: never
on_failure: always