forked from gerasimou/UNDERSEA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
40 lines (38 loc) · 1.21 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
trigger:
- master
jobs:
- job: Linux
pool: Hosted Ubuntu 1604
steps:
- task: ShellScript@2
inputs:
scriptPath: 'setup.sh'
args: '--all'
displayName: 'Initialise toolchain'
- script: |
echo '##vso[task.setvariable variable=path]$(PATH):/home/vsts/work/1/s/libraries/moos-ivp/bin'
displayName: 'Set PATH'
- script: |
cd libraries/MATLAB/v95/bin/glnxa64
find -L . -name . -o -type d -prune -o -type l -exec rm {} +
displayName: 'Setup environment parameters'
- script: |
echo PATH is $PATH
displayName: 'Echo PATH'
- task: Gradle@2
inputs:
gradleWrapperFile: 'undersea-agent/gradlew'
workingDirectory: 'undersea-agent'
tasks: 'clean build test --scan -Pbuildserver=true'
javaHomeOption: 'JDKVersion'
jdkVersionOption: 1.8
codeCoverageToolOption: 'None'
displayName: 'Gradle build and test'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
searchFolder: 'undersea-agent'
mergeTestResults: true
testRunTitle: 'Ubuntu 16.04 Tests'
displayName: "Publish test results"