Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 2b89b9e

Browse files
authored
[CI] Add basic Travis CI script (#62)
* [CI] add basic Travis script for 'java-version-tester.sh' * [CI] run on Mac OS X * [CI] run as single command * [CI] improve script output * [CI] run on different Mac OS X versions https://docs.travis-ci.com/user/reference/osx/#OS-X-Version * [CI] „language: generic“ instead of „ruby“ * [CI] show Mac OS X version in build
1 parent ff6a649 commit 2b89b9e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: generic
2+
3+
# run on different Mac OS X versions
4+
# https://docs.travis-ci.com/user/reference/osx/#OS-X-Version
5+
matrix:
6+
include:
7+
# OS X 10.10
8+
- os: osx
9+
osx_image: xcode6.4
10+
# OS X 10.11
11+
- os: osx
12+
osx_image: xcode8
13+
# OS X 10.12
14+
- os: osx
15+
osx_image: xcode9
16+
# OS X 10.13
17+
- os: osx
18+
osx_image: xcode9.3beta
19+
20+
21+
# run the 'java-version-tester' script and show&save (`tee`) the output to a
22+
# logfile; then grep the logfile for 'FAILED' entries which would cause grep
23+
# to exit with 0; then run 'test' command and swap the grep exit code
24+
# to return with 0 if grep doesn't match and return with 1 if it matches
25+
script:
26+
- sw_vers
27+
- bash test/java-version-tester.sh | tee test/java-version-tester.log
28+
- cat test/java-version-tester.log | grep FAILED ; test $? -eq 1

test/java-version-tester.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,7 @@ testValidReqPattern "9.2.15." "1"
385385
testValidReqPattern "9.2.15.*" "1"
386386
testValidReqPattern "9.2.15.+" "1"
387387
testValidReqPattern "9.3.5.6" "1"
388+
389+
390+
echo ""
391+
echo ""

0 commit comments

Comments
 (0)