-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (94 loc) · 4.93 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
language: python
matrix:
include:
#- os: linux
# dist: trusty
# python: 2.6
- os: linux
dist: xenial
python: 2.7
- os: linux
dist: trusty
python: 3.3
- os: linux
dist: xenial
python: 3.4
- os: linux
dist: xenial
python: 3.5
- os: linux
dist: xenial
python: 3.6
- os: linux
dist: xenial
python: 3.7
# - os: linux
# dist: xenial
# python: 3.8-dev
services:
- couchdb
# command to install dependencies
before_install:
# - sudo rm /opt/pyenv/shims/python*
#- sudo rm /usr/bin/python*
- sudo apt-get update
- sudo apt-get install libdpm-dev libboost-all-dev python-dev python3-dev
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]] || [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then sudo apt-get install libglibmm-2.4-1c2a ; else sudo apt-get install libglibmm-2.4-1v5 ; fi
- sudo apt-get install -y dpkg
- wget http://mirrors.kernel.org/ubuntu/pool/main/j/json-c/libjson-c3_0.12.1-1.3_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gfal2/libgfal-transfer2_2.15.2-1_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gfal2/gfal2_2.15.2-1_all.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gfal2/libgfal2-2_2.15.2-1_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/main/a/attr/libattr1_2.4.47-2build1_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/main/a/attr/libattr1-dev_2.4.47-2build1_amd64.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gfal2/libgfal2-dev_2.15.2-1_amd64.deb
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg --install gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg --install libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
- sudo dpkg --install libjson-c3_0.12.1-1.3_amd64.deb
- sudo dpkg --install libgfal2-2_2.15.2-1_amd64.deb
- sudo dpkg --install libgfal-transfer2_2.15.2-1_amd64.deb
- sudo dpkg --install gfal2_2.15.2-1_all.deb
- sudo dpkg --install libattr1_2.4.47-2build1_amd64.deb
- sudo dpkg --install libattr1-dev_2.4.47-2build1_amd64.deb
- sudo dpkg --install libgfal2-dev_2.15.2-1_amd64.deb
# - sudo find / -name "libboost_python*"
# - echo ${Boost_PYTHON_3_SUFFIX}
- ls $(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- export PYTHON_INCLUDE_DIR=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
- export PYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")/libpython*[!m].so
# - pip install --verbose git+https://github.com/cern-fts/gfal2-python.git
- if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]];
then sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py34.so /usr/lib/x86_64-linux-gnu/libboost_python-py33.so;
else sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python-py34.so;
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python-py36.so;
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python-py37.so;
fi
# - sudo apt-get install gfal2-plugin-mock
- pip install --verbose git+https://gitlab.cern.ch/dmc/gfal2-bindings.git@7b5f2ba65e2ead2213f07aa9a734d0cb37232934
- which -a python
# - sudo apt-get install globus-gass-copy-progs voms-clients -y
# - sudo add-apt-repository -y 'deb http://repository.egi.eu/sw/production/cas/1/current egi-igtf core'
# - sudo apt-get update
# - sudo mkdir -p /etc/grid-security/certificates/
# - sudo apt-get -y --allow-unauthenticated install ca-policy-egi-core
- pip install mock
# - wget http://www.globus.org/ftppub/gt6/installers/repo/globus-toolkit-repo_latest_all.deb
# - dpkg -i globus-toolkit-repo_latest_all.deb
# - apt-get install globus-data-management-client
- pip install codecov
- export LRT_Version=$( python -c "import GRID_LRT;print(GRID_LRT.__version__)" )
- git clone https://github.com/apmechev/GRID_PiCaS_Launcher.git
- cd GRID_PiCaS_Launcher
- export PiCaS_Launcher_dir=$PWD
- if [[ -z $( git tag -l |grep "v$LRT_Version"$ ) ]]; then echo 'Cannot Find GRID_PiCaS_Launcher, v$LRT_Version!'; exit -10; fi
- git checkout "v$LRT_Version"
- cd ../
- curl -X PUT localhost:5984/test_db
script:
- nosetests --with-coverage
- echo "Testing integration with PiCaS_Launcher, v"$LRT_Version
after_success:
- codecov
# # command to run tests