PAN-52 Updated the build.gradle files and the .travis.yml
This commit is contained in:
+12
-6
@@ -30,13 +30,19 @@ stages:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: Load Database
|
- stage: "Load Database"
|
||||||
script: ./gradlew loaddb
|
script: ./gradlew loaddb
|
||||||
- stage: Build
|
- stage: "Build"
|
||||||
script: ./gradlew build
|
script: ./gradlew build
|
||||||
- stage: Unit Tests
|
- stage: "Unit Tests"
|
||||||
script: ./gradlew test
|
script: ./gradlew test
|
||||||
- stage: Integration Tests
|
- stage: "Integration Tests"
|
||||||
script: ./gradlew integrationTest
|
script:
|
||||||
- stage: Sonar Analysis
|
- |
|
||||||
|
./gradlew :persistence:startPersistenceApi &
|
||||||
|
APP_PID=$!
|
||||||
|
- |
|
||||||
|
./gradlew integrationTest
|
||||||
|
- kill $APP_PID
|
||||||
|
- stage: "Sonar Analysis"
|
||||||
script: ./gradlew sonar
|
script: ./gradlew sonar
|
||||||
|
|||||||
@@ -50,3 +50,11 @@ task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local d
|
|||||||
commandLine=['cmd','/c','loaddb.bat']
|
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