DATACMNS-1462 - Introduce Concourse.
This commit is contained in:
14
ci/build.sh
Executable file
14
ci/build.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
|
||||
|
||||
spring_commons_artifactory=$(pwd)/spring-commons-artifactory
|
||||
|
||||
rm -rf $HOME/.m2/repository/org/springframework/commons 2> /dev/null || :
|
||||
|
||||
cd spring-commons-github
|
||||
|
||||
./mvnw -Pdistribute -Dmaven.test.skip=true clean deploy \
|
||||
-DaltDeploymentRepository=distribution::default::file://${spring_commons_artifactory}
|
||||
20
ci/build.yml
Normal file
20
ci/build.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: openjdk
|
||||
tag: 8-jdk
|
||||
|
||||
inputs:
|
||||
- name: spring-commons-github
|
||||
|
||||
outputs:
|
||||
- name: spring-commons-artifactory
|
||||
|
||||
caches:
|
||||
- path: maven
|
||||
|
||||
run:
|
||||
path: spring-commons-github/ci/build.sh
|
||||
11
ci/test.sh
Executable file
11
ci/test.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
|
||||
|
||||
rm -rf $HOME/.m2/repository/org/springframework/commons 2> /dev/null || :
|
||||
|
||||
cd spring-commons-github
|
||||
|
||||
./mvnw clean dependency:list test -P${PROFILE} -Dsort
|
||||
17
ci/test.yml
Normal file
17
ci/test.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: openjdk
|
||||
tag: 8-jdk
|
||||
|
||||
inputs:
|
||||
- name: spring-commons-github
|
||||
|
||||
caches:
|
||||
- path: maven
|
||||
|
||||
run:
|
||||
path: spring-commons-github/ci/test.sh
|
||||
Reference in New Issue
Block a user