forked from swisspost/gateleen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swisspost#162 integration tests for gateleen hook js (#1)
swisspost#162 (and some more): - implemented cucumber / selenium integration tests for hook-js (with old version of chrome, as newer ones don't work in travis' "precise" environment) - fixed url in playground server for hook-js - stabilized some other integration tests - minor code fixes
- Loading branch information
Showing
13 changed files
with
305 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ target | |
.vertx | ||
build | ||
.gradle | ||
playground_logs.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
language: java | ||
# We use the deprecated travis environment "precise", because Gateleen does not yet support the newer redis version of the "trusty" environment. | ||
dist: precise | ||
jdk: | ||
- oraclejdk8 | ||
services: | ||
- redis-server | ||
script: | ||
- redis-server | ||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
# Because newer versions of Chrome are not supported for the deprecated "precise" environment of travis we are using, | ||
# we download and install an older version of Chrome (v. 48), along with some dependencies. | ||
- sudo apt-get install -y libappindicator1 fonts-liberation | ||
- wget http://www.slimjet.com/chrome/download-chrome.php?file=lnx%2Fchrome64_48.0.2564.109.deb | ||
- sudo dpkg -i download-chrome.php?file=lnx%2Fchrome64_48.0.2564.109.deb | ||
# We also download the newest version of Chrome Driver that still supports our old version of Chrome (v. 48). | ||
- wget https://chromedriver.storage.googleapis.com/2.21/chromedriver_linux64.zip | ||
- unzip chromedriver_linux64.zip -d gateleen-test/src/test/resources/ | ||
script: | ||
- ./gradlew build | ||
- ./gradlew :gateleen-test:test -PintegrationTests | ||
- java -jar gateleen-playground/build/libs/playground.jar &> playground_logs.log & | ||
# TODO: Instead of sleeping, should we rather make sure that the server Playground actually is running? | ||
- sleep 5s | ||
- ./gradlew :gateleen-playground:uploadStaticFiles | ||
- ./gradlew :gateleen-test:test -PuiIntegrationTests -Dsel_chrome_driver=src/test/resources/chromedriver | ||
- kill $(ps -ef | grep playground | awk '{ print $2 }') | ||
- ./gradlew :gateleen-test:test -PnonUiIntegrationTests | ||
- ./gradlew jacocoTestReport | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.