forked from alisw/alibuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 2.81 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
sudo: required
dist: trusty
python:
- "2.6"
- "2.7"
- "3.5"
services:
- docker
cache:
directories:
- $HOME/sw/TARS
before_install: |
sudo apt-get install -y curl environment-modules
cd ..
git clone -b IB/v5-06/next https://github.com/alisw/alidist
install: |
pip install --user pyyaml
pip install --user codecov
pip install --user coverage
script: |
set -e
export PATH=~/.local/bin:$PATH
export PYTHONPATH=~/lib/python2.7/site-packages:$PYTHONPATH
coverage run -a alibuild/aliBuild analytics off
test -e ~/.config/alibuild/disable-analytics
test ! -e ~/.config/alibuild/analytics-uuid
coverage run -a alibuild/aliBuild analytics on
test ! -e ~/.config/alibuild/disable-analytics
test -e ~/.config/alibuild/analytics-uuid
coverage run -a alibuild/aliBuild analytics off
test -e ~/.config/alibuild/disable-analytics
test -e ~/.config/alibuild/analytics-uuid
time coverage run -a alibuild/aliBuild --help
time coverage run -a alibuild/aliBuild -z test-init init zlib
pushd test-init/alidist && git status && popd
pushd test-init/zlib && git status && popd
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build non-existsting --no-system --disable GCC-Toolchain || true
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken1 --no-system --disable GCC-Toolchain 2>&1 | grep "Header missing"
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken2 --no-system --disable GCC-Toolchain 2>&1 | grep "Empty recipe"
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken3 --no-system --disable GCC-Toolchain 2>&1 | grep "Unable to parse"
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken4 --no-system --disable GCC-Toolchain 2>&1 | grep "Malformed header"
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken5 --no-system --disable GCC-Toolchain 2>&1 | grep "Missing package"
time coverage run -a alibuild/aliBuild -c alibuild/tests/testdist build broken6 --no-system --disable GCC-Toolchain 2>&1 | grep scanning
pushd alibuild
time coverage run -a tests/test_parseRecipe.py
time coverage run -a tests/test_utilities.py
popd
time coverage run -a alibuild/aliBuild build zlib --no-system --disable GCC-Toolchain
alibuild/alienv q
alibuild/alienv setenv zlib/latest -c bash -c '[[ $LD_LIBRARY_PATH == */zlib/* ]]'
time coverage run -a alibuild/aliDoctor AliPhysics
time coverage run -a alibuild/aliBuild build zlib --dry-run
time coverage run -a alibuild/aliBuild --aggressive-cleanup --docker -a slc7_x86-64 -d build zlib
time coverage run -a alibuild/aliBuild --aggressive-cleanup --docker -a ubuntu1510_x86-64 -d build zlib
time coverage run -a alibuild/aliBuild init zlib
after_success:
- bash <(curl -s https://codecov.io/bash)