PAN-52 Updated the build.gradle files and the .travis.yml

This commit is contained in:
2019-03-17 16:01:12 -06:00
parent 6197beb309
commit 7548ca64d0
2 changed files with 20 additions and 6 deletions
+12 -6
View File
@@ -30,13 +30,19 @@ stages:
jobs:
include:
- stage: Load Database
- stage: "Load Database"
script: ./gradlew loaddb
- stage: Build
- stage: "Build"
script: ./gradlew build
- stage: Unit Tests
- stage: "Unit Tests"
script: ./gradlew test
- stage: Integration Tests
script: ./gradlew integrationTest
- stage: Sonar Analysis
- stage: "Integration Tests"
script:
- |
./gradlew :persistence:startPersistenceApi &
APP_PID=$!
- |
./gradlew integrationTest
- kill $APP_PID
- stage: "Sonar Analysis"
script: ./gradlew sonar
+8
View File
@@ -50,3 +50,11 @@ task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local d
commandLine=['cmd','/c','loaddb.bat']
}
}
task startPersistenceApi(type: JavaExec, description: 'Starts the Persistence API') {
dependsOn 'loadDb'
dependsOn 'build'
classpath = files('build/libs/persistence-1.0.jar')
classpath += sourceSets.main.runtimeClasspath
main = 'edu.msudenver.tsp.persistence.PersistenceApi'
}