-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
73 lines (62 loc) · 1.73 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
language: python
python: "3.6"
os: linux
dist: xenial
git:
depth: 1
env:
global:
- CODECOV_TOKEN="18d4cc7a-d35c-44ec-9684-e6f2ec7702fc"
- COVERAGE=false
- PYTEST="coverage run -m pytest -ra --timeout=600 -vvv --showlocals"
- RADICAL_DEBUG=True
- RADICAL_DEBUG_HELPER=True
matrix:
- MAIN_CMD="$PYTEST tests/"
- MAIN_CMD="ru-runcheck.sh flake8 diff"
- MAIN_CMD="ru-runcheck.sh pylint diff"
- MAIN_CMD="ru-runcheck.sh flake8 tests/ bin/ examples/"
- MAIN_CMD="ru-runcheck.sh pylint tests/ bin/ examples/"
before_install:
- uname -a
- ulimit -a
- python -V
- ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- echo "Host localhost" >> /home/travis/.ssh/config
- echo " StrictHostKeyChecking no" >> /home/travis/.ssh/config
- chmod g-rw,o-rw /home/travis/.ssh/*
- ssh localhost hostname
- ssh localhost uname -a
# command to install dependencies
install:
- pip install .
- pip install coverage
- pip install flake8
- pip install flake8-per-file-ignores
- pip install pycodestyle
- pip install pylint
- pip install codecov
- pip install pytest
- pip install pytest-timeout
- pip install radical.pilot
before_script:
- LOC=$HOME/virtualenv # Location where VE is created, inside travis home-dir
# - sed -i 's|VENV|'"$LOC"'|g' .coveragerc # Update source in coveragerc
# - cat .coveragerc
script:
- echo $MAIN_CMD
- eval $MAIN_CMD
after_success:
- |
if [[ $COVERAGE == 'true' ]]; then \
coverage combine; \
coverage xml; \
coverage report; \
curl -s https://codecov.io/bash | bash
fi
notifications:
email:
recipients: [email protected]
on_success: change
on_failure: always