2023-01-27 12:51:37 +00:00
|
|
|
pipelines:
|
|
|
|
default:
|
2023-01-27 16:14:40 +00:00
|
|
|
- step:
|
|
|
|
name: Build and Test
|
|
|
|
caches:
|
|
|
|
- maven
|
|
|
|
runs-on:
|
|
|
|
- self.hosted
|
|
|
|
- macos
|
|
|
|
script:
|
|
|
|
- mvn -B verify --file pom.xml
|
|
|
|
- mvn compiler:compile
|
|
|
|
- mvn compiler:testCompile
|
|
|
|
- mvn surefire:test
|
|
|
|
- export REPORTPATH="target/test-reports/*.*"
|
|
|
|
- export CMD="curl -H \"Authorization: Bearer ${BEARER_TOKEN}\" -X POST \"https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads\" --form files=@\"${REPORTPATH}\""
|
|
|
|
- sh ${CMD}
|
|
|
|
|