-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
52 lines (44 loc) · 1.81 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
sudo: false
language: python
python:
- "2.7"
- "3.5"
- "3.6"
env:
- PYMALCOLM_USE_COTHREAD=YES
- PYMALCOLM_USE_COTHREAD=NO
addons:
apt:
packages:
- libhdf5-serial-dev
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 "setuptools>=36"
- pip install -r requirements/test.txt
- pip install coveralls
- ls -al ${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages
- ls -al ${VIRTUAL_ENV}/bin
- python setup.py bdist_egg
# command to run tests
script:
- pytest --cov=malcolm --log-format='%(asctime)s.%(msecs)03d %(filename)-25s %(lineno)4d %(levelname)-8s %(message)s' --log-date-format='%Y-%m-%d %H:%M:%S' tests
# submit coverage
after_script:
- coveralls
deploy:
provider: pypi
user: dls_controls
password:
secure: SElMrsOY3gsaDmM3189epJ+6IPumQ3RcSJsqNRtBpETthC6mH0+49usZucFEJZbXpF+dEQHyRsyABF05M2kUKWlruFO6h9GckV2Bu8KNjmEPkCp4frToqgbm6/y7gbVE3KhlIq7qTLIxmz37oREqJIEgw9XPHbULKy3t6ZcZgmejghINecPwigRsYHcgGQXNcuMhjPAygun8vt1QSGk+FbSvnHJ5hVbn8pmr884QUWii+mM6C/xUUvYzUs81scx/z003hOT7kZUt3/+9q/DhqocV/sT1WPAPeF2G8FygfOQbceJhBNEo+rk//yPoUAHQP8kD2ZhHLN0K0z/xEZ2fAF3slkfi9TAVmazh7TOcwzpJz6TaiJCTIngAFiyY3JHQGW3gvznXsqGAayRkg6O4iYqAT9FcyfoXx9y4F2appxq9aQfR5rT6PXcgq+Zi43uFHYcnjmC3wpTBBCCTPc4CtQ5V4gsEQApxYS7W8450ydSW1l/QLTeLw8J+hJBrUXqTfldw/oZove1zOcHVONeqGidavjrpgPu1/+2Xh5PHKbxSHpWIm9SnSII8HJo9PfEmKI7WHnCVEt/2bLUhs8agK3ppoH9qY+xJFqBnVVpMiNSXfACmqSiL9iqrqJRZe24pyXeif1GOi4ohkPzZZnY01hdMCI7KrEy1cB1x7U/rkr4=
on:
tags: true
# As we are doing a source dist, only deploy for one python in matrix
python: "3.6"
condition: $PYMALCOLM_USE_COTHREAD = YES