forked from Digital-Sapphire/dsdev-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 loc) · 1.46 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
language: python
# Use the new container-based Travis infrastructure.
sudo: false
# Cache pip packages. Explicitly name the pip-cache directory since we
# use a custom `install` step which annuls `cache: pip`.
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pip-accel
# Try OS X.
os:
- linux
# - osx
env:
# shorten logging of pip-accel
- PIP_ACCEL_LOG_FORMAT="%(name)-18s %(levelname)s %(message)s"
# - PYCRYPTO_VERSION=2.4.1
# - PYCRYPTO_VERSION=2.6.1
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "nightly"
matrix:
allow_failures:
# Just tests how PyInstaller performs with upcoming Python 3.6
- python: "nightly"
# Ignore failures from OS X.
- os: osx
install:
# Install PyEnv
- export PATH="/home/travis/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- eval "$(pyenv virtualenv-init -)"
- curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
- pip install tox-travis
# Install dependencies for tests. Use pip-accel to cache compiled
# packages and safe recompiling each time.
# Download-progress bars break Travis's log view. Disable them by
# piping output through another program (if output is not a tty, no
# progress bars)
- pip install pip-accel | cat
- pip-accel install -r dev/requirements.txt | cat
- pip-accel install -r requirements.txt | cat
script:
# Run tests and speed them up by sending them to multiple CPUs.
# Run unitttest first.
- tox