-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml.disabled
41 lines (40 loc) · 2.37 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: al5dAabbphcUYSDVZPpw44GPbqTPrggbM+Y4bxf1UlrwYcvFKAW5i9bfKGUOjz2UC5vPVjUlJosWZ/N/+7tQeDLFd/g9g54OHO7YJq90TWYmgUtQrkObzOV7cqhJYzJ++NagoRAbRcTv+Iq42s0vXc79+yLrqIb8O6MfQz7kvah7qQLvPaOVitlgaYn/R3XJ47T0GYrF6H5VRHhGEBFhxwDsKluRreqvpkKDtUtEnQPTx5rry0FGoPPkXMkuUXZrRK4XHmbDTdtGTlbqitLpM4i+fY6dfICE5yHUBOY29lOeOMj4f1/w9rsUc0eEoPfpLhiA/ECY3FVWHZ8wSRGzbuBokZ5sdAadlybxuyCokb8iuA38X1MhlQcpOqE+f18HZSjgA4G0Ebxr2l4mXvjvFQi55CyViYg2/wkyMZ253AQb1Jl3ulgVTQFjeqOwil+8TxryG0jDQL+O0pBUn0NgbcFfVLPpVbIfuywNWapAvFaNzC6t3/B70BhIiwq85gIvwb5UydSzloztfSx9+5mIH9Pe5gMzQahZxUTI0bwLpOZPT1zr076eZZyXo2+OH30bruWVX8JR0k3i6Qolv3yRqldIF4FfEzTs/kIgg98L+RqGHUrfi+1wpm69W6uHsaM8gPEtRjN3YFmiEdEQyIeMx3dCLjrXVFDv5ena7sDSuKY=
on_success: never
on_failure: always
branches:
only:
- master