-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml.disabled
41 lines (40 loc) · 2.38 KB
/
.travis.yml.disabled
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: java
before_script:
- unset _JAVA_OPTIONS
- cd finish
- chmod +x ../scripts/travisTest.sh
script:
- ../scripts/travisTest.sh
after_script:
- logsPath=$(find . -name "console.log" | sed "s/console.log//g");
- build=$(grep "Open Liberty" $logsPath/console.log | cut -d" " -f5 | cut -d")" -f1 );
- release=$( echo "$build" | cut -d'/' -f1);
- number=$(echo "$build" | cut -d'/' -f2);
- ol_jv=$(grep -i "version" $logsPath/console.log);
- jv=$(printf '%s\n' "${ol_jv//$' on '/$'\n'}" | sed '2q;d');
- echo -e "\n"\
"\033[1;34m Open Liberty release:\033[0m\033[1;36m $release \033[0m \n"\
"\033[1;34m Open Liberty build number:\033[0m\033[1;36m $number \033[0m \n"\
"\033[1;34m Java version:\033[0m\033[1;36m $jv \033[0m \n";
- cd $logsPath;
- repo_name=$(echo "$TRAVIS_REPO_SLUG" | sed -e "s/\//-/g");
- if [ "$TRAVIS_TEST_RESULT" -eq 0 ]; then RESULT="passed"; else RESULT="failed"; fi;
- echo -e "\033[1;34m result:\033[0m\033[1;36m $RESULT \033[0m \n"
- serverlogsarchive="$repo_name-$TRAVIS_BUILD_NUMBER-$RESULT.zip";
- if [ "$TRAVIS_TEST_RESULT" -eq 0 ]; then echo skipped to zip $serverlogsarchive; else zip -r "$serverlogsarchive" .; fi;
- if [ "$TRAVIS_TEST_RESULT" -eq 0 ]; then echo skipped upload; else curl -H "$JFROG_TOKEN" -T "$serverlogsarchive" "https://na.artifactory.swg-devops.com/artifactory/hyc-openliberty-guides-files-generic-local/"; fi;
notifications:
slack:
template:
- 'Build: <%{build_url}| %{build_number}> | Commit (<%{compare_url}|%{commit}>):
%{commit_message}'
- 'Repo@Branch: %{repository_slug}@%{branch}'
- 'Author: %{author}'
- 'Summary: %{result} in %{duration}'
rooms:
secure: YAN9jHT0jPy+owzCsvPQOqbf+EJH0YaMJxtqSJeSq2TmwunOqofHSqD50rLrkwYkh7pPvkW9t/HVT/+2KvNAG0FRjUIEQlJhruYOAR8zT8s38WCqWGa7QbLWHdPa00Abi+sunLFZQ7dvK/z2dgHfoWTpyn6T9qTkin3Bx+vYxzxLtxe1+kCjVOmCjPVLQlDeEJNzWSkDw+vZNPoJLzwKRaf80kcbmn8bjb6G8aGVrlKvjaV2ft34R/P8ysf4ePK92eWVE6y9nzszOs5XK8SdbRN97z2frVExMTzXzIp2uJTxQ5Pm812h2j3rVgyQIGECyhm/m7ACpBoFE+08JvdPb83C2gUgNf4bZWZ00IhXaPk8DMArNgijP+Mjvi9E1v/QMm/34+/nmUmQsw67GJ4lfSTzL3WmRcCjIvb31nKOMoqP35MR+uc2ZG2hcci1TZtK/+PQbAz24yaezyMycnYk5dhW+cltYHHw/uzsArecV0luL6C2MYHtLkJVClgBLo/LIyxcY+GtKoxfN8FNVjw9Djx7SKCDKeuHwf5CFE5BWBs+UbSVTjmmahUS2hfRaLGmo1S9HoZoZULe6HhyqUmRff+YL/BvWr+MPRiwqewt/MBbbLH5XhZAum32JOYa9nf4XV/zWW3wN6JiodRsaO9doi4RE+gRcHR+XDsSFDlclfM=
on_success: never
on_failure: always
branches:
only:
- master