Skip to content

Commit

Permalink
swisspost#162: cleaned up travis and gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
roggerj committed Sep 11, 2017
1 parent 8f92375 commit f1b6050
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: precise
jdk:
- oraclejdk8
services:
- redis-server
- redis-server
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
Expand All @@ -16,13 +16,10 @@ before_install:
- cd ..; cd ..; cd ..; cd ..
script:
- ./gradlew build
# - ./gradlew gateleen-test:startServer (no logging, also waits for it to come up)
- nohup java -jar gateleen-playground/build/libs/playground.jar &
- sleep 5s
# - ./gradlew :gateleen-playground:uploadStaticFiles
- ./gradlew :gateleen-playground:uploadStaticFiles
- ./gradlew :gateleen-test:test -PuiTests -Dsel_chrome_driver=src/test/resources/chromedriver
# - ./gradlew gateleen-test:stopServer
- kill $(ps -ef | grep playground | awk '{ print $2 }')
- ./gradlew :gateleen-test:test -PnonUiTests
- ./gradlew jacocoTestReport
Expand Down
8 changes: 4 additions & 4 deletions gateleen-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ dependencies {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
compile (group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.+') {
testCompile (group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.+') {
exclude group: 'org.seleniumhq.selenium', module: 'selenium-edge-driver'
exclude group: 'org.seleniumhq.selenium', module: 'selenium-firefox-driver'
exclude group: 'org.seleniumhq.selenium', module: 'selenium-ie-driver'
exclude group: 'org.seleniumhq.selenium', module: 'selenium-opera-driver'
exclude group: 'org.seleniumhq.selenium', module: 'selenium-safari-driver'
}
testCompile (group: 'info.cukes', name: 'cucumber-java', version: '1.2.5')
testCompile (group: 'info.cukes', name: 'cucumber-junit', version: '1.2.5')
testCompile (group: 'info.cukes', name: 'cucumber-java', version: "$cukeVersion")
testCompile (group: 'info.cukes', name: 'cucumber-junit', version: "$cukeVersion")
}

test {
Expand All @@ -61,8 +61,8 @@ test {
filter {

if (project.hasProperty("nonUiTests")) {
exclude "org/swisspush/gateleen/hookjs/**"
include "org/swisspush/gateleen/**"
exclude "org/swisspush/gateleen/hookjs/**"
}

if (project.hasProperty("uiTests")) {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ mockitoVersion=1.9.5
wiremockVersion=1.56
commonscodecVersion=1.9
angularjsVersion=1.5.8
cukeVersion=1.2.5

0 comments on commit f1b6050

Please sign in to comment.