File tree Expand file tree Collapse file tree 2 files changed +26
-21
lines changed Expand file tree Collapse file tree 2 files changed +26
-21
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ kotlin {
69
69
70
70
tasks.register(" runModelServer" , JavaExec ::class ) {
71
71
group = " modelix"
72
+
73
+ description = " Launches a model-server instance to be used as a target for the test. " +
74
+ " This task will block and is intended to be run in a separate process, apart from the actual test execution."
75
+
72
76
classpath = sourceSets[" main" ].runtimeClasspath
73
77
mainClass.set(" org.modelix.model.server.Main" )
74
78
args(" -inmemory" )
@@ -96,7 +100,7 @@ modelSync {
96
100
includeModule(" GraphSolution" )
97
101
fromLocal {
98
102
mpsHome = mpsDir
99
- mpsHeapSize = " 4g "
103
+ mpsHeapSize = " 2g "
100
104
repositoryDir = repoDir
101
105
}
102
106
toModelServer {
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
set -e
4
- (
5
- cd " $( dirname " $0 " ) "
6
4
7
- (
8
- cd graph-lang-api
9
- ./gradlew publishToMavenLocal --console=plain
10
- )
5
+ cd " $( dirname " $0 " ) "
11
6
12
- ./gradlew assemble --console=plain
7
+ (
8
+ cd graph-lang-api
9
+ ./gradlew publishToMavenLocal --console=plain
10
+ )
13
11
12
+ ./gradlew assemble --console=plain
13
+
14
+ if [ " ${CI} " != " true" ]; then
14
15
trap cleanup INT TERM EXIT
15
16
cleanup () {
16
17
kill " ${MODEL_SERVER_PID} "
17
18
exit
18
19
}
20
+ fi
19
21
20
- ./gradlew runModelServer --console=plain &
21
- MODEL_SERVER_PID=$!
22
- sleep 5
22
+ ./gradlew runModelServer --console=plain &
23
+ MODEL_SERVER_PID=$!
24
+ sleep 5
23
25
24
- # CI needs more time
25
- if [ " ${CI} " = " true" ]; then
26
- sleep 15
27
- fi
26
+ # CI needs more time
27
+ if [ " ${CI} " = " true" ]; then
28
+ sleep 10
29
+ fi
28
30
29
- curl -X POST http://127.0.0.1:28101/v2/repositories/ci-test/init
31
+ curl -X POST http://127.0.0.1:28101/v2/repositories/ci-test/init
30
32
31
- ./gradlew runSyncTestPush --console=plain --stacktrace
32
- ./gradlew test --tests ' PushTest'
33
- ./gradlew runSyncTestPull --console=plain --stacktrace
34
- ./gradlew test --tests ' PullTest'
35
- )
33
+ ./gradlew runSyncTestPush --console=plain --stacktrace
34
+ ./gradlew test --tests ' PushTest'
35
+ ./gradlew runSyncTestPull --console=plain --stacktrace
36
+ ./gradlew test --tests ' PullTest'
You can’t perform that action at this time.
0 commit comments