PAN-52 Updated the build.gradle files and the .travis.yml
This commit is contained in:
+12
-6
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user