-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
47 lines (40 loc) · 1002 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
37
38
39
40
41
42
43
44
45
46
47
sudo: false
dist: xenial
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
# Get epics base
addons:
apt:
sources:
- sourceline: 'deb https://epics.nsls2.bnl.gov/ wheezy main contrib'
key_url: 'https://epics.nsls2.bnl.gov/repo-key.pub'
packages:
- epics-dev
- build-essential
env:
- EPICS_BASE=/usr/lib/epics EPICS_HOST_ARCH=linux-x86_64
cache:
directories:
- $HOME/.cache/pip
- ${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages
- ${VIRTUAL_ENV}/bin
install:
- env
- ls -al ${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages
- ls -al ${VIRTUAL_ENV}/bin
- pip install numpy pytest
- pip install pytest-cov coveralls
- ls -al ${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages
- ls -al ${VIRTUAL_ENV}/bin
- make PYTHON=python dist build_ext
# command to run tests
script:
- py.test --cov=cothread --tb=native -vv tests
# submit coverage
after_script:
- coveralls