This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
forked from xtreemfs/xtreemfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (66 loc) · 2.46 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
language: java
jdk: openjdk7
env:
matrix:
# test suites to run in parallel
- TEST_SUITE=travis-junit
- TEST_SUITE=travis-cpp BUILD_CLIENT_TESTS=true SKIP_JNI=true
- TEST_SUITE=travis-valgrind BUILD_CLIENT_TESTS=true SKIP_JNI=true
- TEST_SUITE=travis-contrib
- TEST_SUITE=travis-deploy
sudo: false
addons:
apt:
packages:
- libboost-all-dev
- libfuse-dev
- fuse
- libssl-dev
- libattr1-dev
- make
- cmake
- automake
- python
- valgrind
- net-tools
- openjdk-7-jdk
before_script:
- TEST_DIR="/tmp/xtreemfs_xtestenv"
- XTREEMFS_DIR=`pwd`
- XTREEMFS_DIST_DIR="xtreemfs-${TRAVIS_TAG}"
- XTREEMFS_DIST_TAR="${XTREEMFS_DIST_DIR}-$(lsb_release -c -s)-dist.tar.gz"
script: |
if [[ $TEST_SUITE = "travis-deploy" ]]; then
true
else
make client server hadoop-client -j2
./tests/xtestenv --clean-test-dir -x $XTREEMFS_DIR -t $TEST_DIR -c $XTREEMFS_DIR/tests/test_config.py -p $TEST_SUITE
fi
after_failure:
- JUNIT_RESULT=`./contrib/travis/parse_results.py $TEST_DIR/result.json 'JUnit tests'`
- CPP_RESULT=`./contrib/travis/parse_results.py $TEST_DIR/result.json 'C++ Unit Tests'`
- VALGRIND_RESULT=`./contrib/travis/parse_results.py $TEST_DIR/result.json 'Valgrind memory-leak check for C++ Unit Tests'`
- CONTRIB_RESULT=`./contrib/travis/parse_results.py $TEST_DIR/result.json 'hadoop adapter junit tests'`
- cat $TEST_DIR/log/dir.log
- cat $TEST_DIR/log/mrc.log
- cat $TEST_DIR/log/osd*.log
- if [[ $JUNIT_RESULT = "false" ]]; then cat $TEST_DIR/log/junit.log; fi
- if [[ $CPP_RESULT = "false" ]]; then cat cpp/build/Testing/Temporary/LastTest.log; fi
- if [[ $VALGRIND_RESULT = "false" ]]; then cat $TEST_DIR/log/valgrind.log; fi
- if [[ $CONTRIB_RESULT = "false" ]]; then cat $TEST_DIR/log/hadoop-*-junit.log; fi
before_deploy:
- mkdir "${XTREEMFS_DIST_DIR}"
- make client server server-repl-plugin hadoop-client install DESTDIR="${XTREEMFS_DIST_DIR}"
- tar czf "${XTREEMFS_DIST_TAR}" "${XTREEMFS_DIST_DIR}"
deploy:
provider: releases
api_key:
# robert-schmidtke's encrypted GitHub API key
secure: "XnC5jy6a6cLMVglnl6KTBkr3o8ir3ulKqKKjc669yUjAET7LfTyGdWcTHsekPxhiUMOnM4mwjna519yrGseTRUE6ff4Ba0FrBDwMK4bXdPyeVnCG59wUndFUTBKlOgFOz3tD4g/ZfdicufnCTRILjCqwDL2U3MNY31LoUssM77o="
file: "${XTREEMFS_DIST_TAR}"
skip_cleanup: true
overwrite: true
on:
repo: xtreemfs/xtreemfs
tags: true
condition: "$TEST_SUITE = travis-deploy"