-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
40 lines (31 loc) · 1.5 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
language: python
dist: xenial
python:
- "3.6"
- "3.7"
addons:
sonarcloud:
organization: "astrolabsoftware"
token:
secure: "PGDuKZKbU7snM1Mwwci38IBfVWIYWldvByVrCj5oLJ5NKUq/b0KGiPVUR1qnFwW3+AqeLIbBoIMuZ8e935xmCeiTXAUcSRhniFsXZEN9uJO/+5I4RwWZdh6eSddqey81H7pAVJQ98K7Wh0iYYgwFhIjTK+Pu8+w6cqiwnConA+GQgosTZTDU/c7KQZzHLlVoBL5ZiV47br66pINeQ8uPyEmspqXjEkyn2lf44VludouCj4cTcO14dgMI6ahcwdtD+EFV5XLlPWayMzE7/kyhkrt2ZGNcF1ADeeBWVDAjVAhbeP2Zem6rvCJS4ZbZCsB35fhJLbd/VaYrycwZAeTizwICitpP/Jkg20x7yo3vWYVVhoGzx+8hyRyCrpNOH+kWYIco6nltIcoocLJPX4FHlWeDnE0SJfbB9EeqhDnvShkCtHZCeyPQGow/w8pwTpZOAJ5WYJNl1fHRMLikXwOrdifOvNrEH5RaWS6con1vGQugf+7DWioW7ClXyeJNQXt0XeI2i/4jddvkQml6Za8jAqjvqVpk4XL3JY0R6AfKZcOXh8Vq87dObAvVzZKHBl43Ss68m4vpITktaZ8kYUN3ukey4AwmvQHpmXPmOMUGaOs6Zcv+Jkey35VFk8SydGTL7LXtXKY00BLqI7mdvF/LU0qDfMU11ujsYtiKo44mYdg="
before_install:
- export FINK_CLIENT_HOME="/home/travis/build/${TRAVIS_REPO_SLUG}"
install:
# Python deps
- pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- pip install -e .
script:
# For sonar to run correctly
# - git fetch --unshallow --quiet
# Print current version
- python -c "import fink_client; print('Fink client version ', fink_client.__version__)"
# run tests
- bin/fink_client_test.sh
- bash <(curl -s https://codecov.io/bash)
# Scan with sonarqube only if internal PR (i.e. no fork)
# Note: this is unsatisfactory...
- if [ $TRAVIS_REPO_SLUG == "astrolabsoftware/fink-broker" ]; then
coverage xml -i;
sonar-scanner;
fi