File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 25
25
- run : |
26
26
PROBE_VERSION="$(python setup.py --version)"
27
27
echo "SPP_PROBE_VERSION=$PROBE_VERSION" >> $GITHUB_ENV
28
- - run : python setup.py sdist
29
- - run : cp dist/sourceplusplus-${{ env.SPP_PROBE_VERSION }}.tar.gz e2e
30
- - run : cd e2e && docker-compose up -d
28
+
29
+ - run : ./gradlew assembleUp
30
+
31
31
- name : Docker IPs
32
32
run : docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
33
33
- name : Set E2E_APP_HOST
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id(" ru.vyarus.use-python" ) version " 2.3.0"
3
+ id(" com.avast.gradle.docker-compose" )
3
4
}
4
5
5
6
python {
6
7
pip(" apache-skywalking:0.7.0" )
7
8
pip(" vertx-eventbus-client:1.0.0" )
8
9
}
10
+
11
+ tasks {
12
+ register<Exec >(" buildDist" ) {
13
+ commandLine(" sh" , " -c" , " python setup.py sdist" )
14
+ }
15
+
16
+ register<Copy >(" updateDockerFiles" ) {
17
+ dependsOn(" buildDist" )
18
+ from(" dist/" )
19
+ into(" e2e/" )
20
+ }
21
+
22
+ register(" assembleUp" ) {
23
+ dependsOn(" updateDockerFiles" , " composeUp" )
24
+ }
25
+ getByName(" composeUp" ).mustRunAfter(" updateDockerFiles" )
26
+ }
27
+
28
+ dockerCompose {
29
+ dockerComposeWorkingDirectory.set(File (" ./e2e" ))
30
+ removeVolumes.set(true )
31
+ waitForTcpPorts.set(false )
32
+ }
Original file line number Diff line number Diff line change
1
+ pluginManagement {
2
+ plugins {
3
+ id ' com.avast.gradle.docker-compose' version " 0.14.9" apply false
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments