-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 804 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
python:
- "2.6"
- "2.7"
- "nightly"
matrix:
allow_failures:
- python: "nightly"
fast_finish: true
# Pin Ubuntu to Trusty for the moment for Python 2.6 support
dist: trusty
# Cache the dependencies installed by pip
cache: pip
# Avoid pip log from affecting cache
before_cache: rm -fv ~/.cache/pip/log/debug.log
install:
# Base requirements for ssm
- pip install -r requirements.txt
# Additional requirements for the unit and coverage tests
- pip install -r requirements-test.txt
# Commands to prepare environment for the test
before_script:
- export TMPDIR=$PWD/tmp
- mkdir $TMPDIR
- export PYTHONPATH=$PYTHONPATH:`pwd -P`
- cd test
script: coverage run --branch --source=ssm,bin -m unittest2 discover --buffer
after_success:
- coveralls
- codecov