forked from DIRACGrid/Pilot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (31 loc) · 895 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
dist: trusty
language: python
python:
- "2.6"
- "2.7"
env:
matrix:
- CHECK=pytest
- CHECK=pylint
- CHECK=format
# command to install dependencies
install:
- "pip install --upgrade setuptools"
- "pip install --upgrade pip"
- "pip install -r requirements.txt"
# command to run tests
script:
- export PYTHONPATH=${PWD%/*}
- ls $PYTHONPATH
- if [[ "${CHECK}" == "pytest" ]];
then pytest;
elif [[ "${CHECK}" == "pylint" ]];
then travis_wait 30 ./runPylint.sh;
elif [[ "${CHECK}" == "format" ]] && [[ "${TRAVIS_PULL_REQUEST}" != "false" ]];
then git remote add GH https://github.com/DIRACGrid/Pilot.git; git fetch --no-tags GH ${TRAVIS_BRANCH}; git branch -vv; git diff -U0 GH/${TRAVIS_BRANCH} | pycodestyle --diff;
fi
## ignore errors for sourcefiles "-i"
after_success:
- if [[ "${CHECK}" == "pytest" ]];
then coveralls -i;
fi