DATAREDIS-920 - Add test task.

This commit is contained in:
Greg Turnquist
2019-02-28 06:51:17 -06:00
parent 0a4d6222e6
commit 2e7a3c0685
3 changed files with 32 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ rm -rf $HOME/.m2/repository/org/springframework/data 2> /dev/null || :
cd spring-data-redis-github
ln -s /work
ln -s /work x
make test SPRING_PROFILE=spring5-next

15
ci/test.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
[[ -d $PWD/maven && ! -d $HOME/.m2 ]] && ln -s $PWD/maven $HOME/.m2
rm -rf $HOME/.m2/repository/org/springframework/data/redis 2> /dev/null || :
cd spring-data-redis-github
ln -s /work x
make test SPRING_PROFILE=spring5-next
./mvnw clean dependency:list test -P${PROFILE} -Dsort

16
ci/test.yml Normal file
View File

@@ -0,0 +1,16 @@
---
platform: linux
image_resource:
type: docker-image
source:
repository: gregturn/8-jdk-with-redis
inputs:
- name: spring-data-redis-github
caches:
- path: maven
run:
path: spring-data-redis-github/ci/test.sh