forked from reactor/reactor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-build.sh
executable file
·41 lines (36 loc) · 1.52 KB
/
travis-build.sh
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
#!/bin/bash
set -ev
## temporarily disabled due to test-check running after check if later fails
#if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
# COMMIT_RANGE="FETCH_HEAD..$TRAVIS_BRANCH"
# echo "travis PR #$TRAVIS_PULL_REQUEST build, looking at files in $COMMIT_RANGE"
# COMMIT_CONTENT=`git diff --name-only $COMMIT_RANGE`
# echo "PR content: $COMMIT_CONTENT"
# echo $COMMIT_CONTENT | grep -qv '^reactor-test/' && {
# echo "something else than reactor-test was touched -> full test"
# ./gradlew check
# } || {
# echo "only reactor-test was touched -> selective test"
# ./gradlew :reactor-test:check
# }
#elif [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "3.0.x" ]; then
# echo "master or 3.0.x: this is a merge test -> full test"
# ./gradlew check
#else
# COMMIT_RANGE=${TRAVIS_COMMIT_RANGE/.../..}
# echo "travis push build, looking at files in $COMMIT_RANGE"
# COMMIT_CONTENT=`git diff --name-only $COMMIT_RANGE` || {
# echo "travis commit range diff failed, probably new PR or force push, falling back to single commit $TRAVIS_COMMIT"
# COMMIT_CONTENT=`git diff-tree --no-commit-id --name-only -r $TRAVIS_COMMIT`
# }
# echo "commits content: $COMMIT_CONTENT"
# echo $COMMIT_CONTENT | grep -qv '^reactor-test/' && {
# echo "something else than reactor-test was touched -> full test"
# ./gradlew check
# } || {
# echo "only reactor-test was touched -> selective test"
# ./gradlew :reactor-test:check
# }
#fi
./gradlew check
exit 0;