forked from grails/grails-data-mapping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-build.sh
executable file
·74 lines (66 loc) · 2.41 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
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
#!/bin/bash
EXIT_STATUS=0
./gradlew --stop
case "$GORM_IMPL" in
hibernate)
./gradlew grails-datastore-gorm-hibernate:test -no-daemon || EXIT_STATUS=$?
;;
hibernate4)
./gradlew grails-datastore-gorm-hibernate4:test -no-daemon --stacktrace || EXIT_STATUS=$?
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew grails2-plugins/hibernate4:test || EXIT_STATUS=$?
fi
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew boot-plugins/gorm-hibernate4-spring-boot:test || EXIT_STATUS=$?
fi
;;
hibernate5)
./gradlew grails-datastore-gorm-hibernate5:test -no-daemon --stacktrace || EXIT_STATUS=$?
;;
mongodb)
./gradlew grails-datastore-gorm-mongodb:test -no-daemon --stacktrace || EXIT_STATUS=$?
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew grails2-plugins/mongodb:test || EXIT_STATUS=$?
fi
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew boot-plugins/gorm-mongodb-spring-boot:test || EXIT_STATUS=$?
fi
;;
redis)
./gradlew grails-datastore-gorm-redis:test -no-daemon || EXIT_STATUS=$?
;;
testgrails2)
./gradlew grails-datastore-gorm-grails2-test:test -no-daemon || EXIT_STATUS=$?
;;
cassandra)
# wait for Cassandra to start up
sleep 5
./gradlew grails-datastore-gorm-cassandra:test -no-daemon || EXIT_STATUS=$?
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew boot-plugins/gorm-cassandra-spring-boot:test || EXIT_STATUS=$?
fi
;;
neo4j)
./gradlew grails-datastore-gorm-neo4j:test -no-daemon || EXIT_STATUS=$?
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew grails2-plugins/neo4j:test || EXIT_STATUS=$?
fi
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew boot-plugins/gorm-neo4j-spring-boot:test || EXIT_STATUS=$?
fi
;;
restclient)
./gradlew grails-datastore-gorm-rest-client:test -no-daemon || EXIT_STATUS=$?
;;
*)
# Run unit testing API tests
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew grails-datastore-test-support:test || EXIT_STATUS=$?
fi
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew grails-datastore-gorm:test grails-datastore-gorm-test:test || EXIT_STATUS=$?
fi
;;
esac
./travis-publish.sh || EXIT_STATUS=$?
exit $EXIT_STATUS