forked from DIRACGrid/DIRAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 985 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
language: python
python:
- "2.7"
env:
matrix:
- CHECK=py.test
- CHECK=docs
- 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}" == "py.test" ]];
then py.test;
elif [[ "${CHECK}" == "docs" ]];
then cd docs; READTHEDOCS=True make html;
elif [[ "${CHECK}" == "pylint" ]];
then travis_wait 30 .travis.d/runPylint.sh;
elif [[ "${CHECK}" == "format" ]] && [[ "${TRAVIS_PULL_REQUEST}" != "false" ]];
then git remote add GH https://github.com/DIRACGrid/DIRAC.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}" == "py.test" ]];
then coveralls -i;
fi