forked from AndrewLister-STFC/rucio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
116 lines (105 loc) · 4.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright 2017-2018 CERN for the benefit of the ATLAS collaboration.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Authors:
# - Thomas Beermann <[email protected]>, 2017-2018
# - Vincent Garonne <[email protected]>, 2017-2018
# - Mario Lassnig <[email protected]>, 2018
# - Hannes Hansen <[email protected]>, 2018-2019
# - Martin Barisits <[email protected]>, 2019
sudo:
- required
os:
- linux
language:
- python
python:
- 2.7
- 3.5
- 3.6
services:
- docker
install:
- git diff --name-status HEAD $(git merge-base HEAD master) | grep \.py$ | grep -v '^A' | grep -v 'conf.py' | cut -f 2 | paste -sd " " - > changed_files.txt
- python --version
- pip --version
- tools/travis/install_script.sh
before_script:
- tools/travis/before_script.sh
- docker ps -a
script:
- if [[ $SUITE == "syntax" ]]; then ./tools/travis/check_syntax.sh ; fi
- if [[ $SUITE == "python3" ]]; then ./tools/travis/check_python_3.sh ; fi
- if [[ $SUITE == "client" && "$TRAVIS_PYTHON_VERSION" != "3.6" ]]; then nosetests -v lib/rucio/tests/test_clients.py; if [ $? -ne 0 ]; then exit 1 ; fi ; nosetests -v lib/rucio/tests/test_module_import.py; if [ $? -ne 0 ]; then exit 1 ; fi ; fi
- if [[ $SUITE == "client" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then nosetests -v lib/rucio/tests/test_clients.py; if [ $? -ne 0 ]; then exit 1 ; fi ; nosetests -v lib/rucio/tests/test_bin_rucio.py; if [ $? -ne 0 ]; then exit 1 ; fi ; fi
- if [[ $SUITE == "all" ]]; then docker exec -it rucio /bin/sh -c "/opt/rucio/tools/run_tests_docker.sh" ; fi
env:
- SUITE=syntax
- SUITE=all RDBMS=oracle
- SUITE=all RDBMS=mysql
- SUITE=all RDBMS=postgres
- SUITE=all RDBMS=sqlite
- SUITE=client RDBMS=sqlite RUCIO_HOME=`pwd`
- SUITE=python3
matrix:
fast_finish: true
exclude:
- python: 2.7
env: SUITE=python3
- python: 3.4
env: SUITE=all RDBMS=oracle
- python: 3.4
env: SUITE=all RDBMS=mysql
- python: 3.4
env: SUITE=all RDBMS=postgres
- python: 3.4
env: SUITE=all RDBMS=sqlite
- python: 3.4
env: SUITE=syntax
- python: 3.5
env: SUITE=syntax
- python: 3.5
env: SUITE=all RDBMS=oracle
- python: 3.5
env: SUITE=all RDBMS=mysql
- python: 3.5
env: SUITE=all RDBMS=sqlite
- python: 3.5
env: SUITE=all RDBMS=oracle
- python: 3.5
env: SUITE=all RDBMS=mysql
- python: 3.5
env: SUITE=all RDBMS=sqlite
- python: 3.6
env: SUITE=python3
- python: 3.6
env: SUITE=all
- python: 3.6
env: SUITE=all RDBMS=oracle
- python: 3.6
env: SUITE=all RDBMS=mysql
- python: 3.6
env: SUITE=all RDBMS=sqlite
allow_failures:
- python: 3.6
env: SUITE=syntax
- python: 3.6
env: SUITE=client RDBMS=sqlite RUCIO_HOME=`pwd`
- python: 3.5
env: SUITE=all RDBMS=postgres
- python: 3.6
env: SUITE=all RDBMS=postgres
notifications:
slack:
secure: n8nmTHao0omraqNbqXsbv+0IqYyXDFYLZFYDuD9fXBz8nyD/U6mOqcYzlozsfA3vmVQI0qXfCohK9+CKRfWLFg7LhFZk0CeApU+YurXNdBFXdZDrY6kKQah/W56Fmw8hvfo0iMRar0pzRa7LPLDR+ZMrQUfQFUebM4pIa3wbzyUkzH1iPqtOB5FsHkJijHjBRShvWWRvlpiobQxgLBUWPGPpiOdBlnOTzzmEjIsjTXBPCgDjMEe/kqiJ4NHtWgOi5WTYxPlm5pv511TMXx23S+Uy5GrO1FAwqR/41yV5i/wxMdb8UGro+aT8SWkU8jBaQ7eQAnwhL88J3KTBeMeA2or5quu9bve0bpGSqu69n90CZyPhuudBJtusW6Bk76uO0bw1EdB9bJyCS9oA8mmn1qyQAwrOmR6203RczTyfIGMa90fIe4VMQNfmLMYlp1rx3U3DdajBfq6M/anmu2veJI1DyLzbgJz5AsgwuJhKTgQTSjOceSlqTe/dypLsKRpdj48gbvhUbPfx1q7R0yl+dNWpbUaR3fqtkp5f/R6KJTLlCzF7gRpGgfILhcqtHMxUtdWovQCnmbmgcX0JW2x416eGPSriADZKj9hDBW8Lo4BK5CONQ5VRitzNY3pVplHfI5uLjoKHuV+T/BZ7V6hzobmhBMBQUE2/xYe9bJtRfrQ=