Skip to content

Commit 7794fff

Browse files
ZhengXinCNSwisspusher
authored andcommitted
maven build including release build (#182)
1 parent 1ef003b commit 7794fff

File tree

63 files changed

+3478
-1284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3478
-1284
lines changed

.travis.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
- redis-server
88
before_install:
99
- export DISPLAY=:99.0
10+
- chmod +x maybe-release.sh
1011
- sh -e /etc/init.d/xvfb start
1112
# Because newer versions of Chrome are not supported for the deprecated "precise" environment of travis we are using,
1213
# we download and install an older version of Chrome (v. 48), along with some dependencies.
@@ -16,15 +17,22 @@ before_install:
1617
# We also download the newest version of Chrome Driver that still supports our old version of Chrome (v. 48).
1718
- wget https://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip
1819
- unzip chromedriver_linux64.zip -d gateleen-test/src/test/resources/
20+
install:
21+
- mvn install -Dmaven.javadoc.skip=true -B -V
22+
before_script:
23+
- git config --global user.email "[email protected]"
24+
- git config --global user.name "Travis-CI"
1925
script:
20-
- ./gradlew build
21-
- java -jar gateleen-playground/build/libs/playground.jar &> playground_logs.log &
22-
# TODO: Instead of sleeping, should we rather make sure that the server Playground actually is running?
26+
- java -jar gateleen-playground/target/playground.jar &> playground_logs.log &
27+
# TODO: Instead of sleeping, should we rather make sure that the server Playground actually is running?
2328
- sleep 5s
24-
- ./gradlew :gateleen-playground:uploadStaticFiles
25-
- ./gradlew :gateleen-test:test -PuiIntegrationTests -Dsel_chrome_driver=src/test/resources/chromedriver
29+
- mvn deploy -PuploadStaticFiles
30+
- mvn install -PuiIntegrationTests
2631
- kill $(ps -ef | grep playground | awk '{ print $2 }')
27-
- ./gradlew :gateleen-test:test -PnonUiIntegrationTests
28-
- ./gradlew jacocoTestReport
32+
- mvn install -PnonUiIntegrationTests
33+
# the exported credentials are needed in the maybe-release.sh
34+
- git config credential.helper "store --file=.git/credentials"
35+
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
36+
- ./maybe-release.sh
2937
after_success:
30-
- bash <(curl -s https://codecov.io/bash)
38+
- bash <(curl -s https://codecov.io/bash)

build.gradle

-282
This file was deleted.

gateleen-core/build.gradle

-19
This file was deleted.

0 commit comments

Comments
 (0)