AuthMeReloaded/.circleci/config.yml

53 lines
1.6 KiB
YAML
Raw Normal View History

2018-01-31 19:31:54 +01:00
version: 2
jobs:
2018-04-19 12:19:59 +02:00
build_and_test_jdk8:
working_directory: ~/authmereloaded-jdk8
docker:
- image: circleci/openjdk:8-jdk
environment:
MAVEN_OPTS: -Xmx2048m
steps:
- checkout
- restore_cache:
2018-04-19 12:29:30 +02:00
keys:
2018-04-19 12:19:59 +02:00
- authmereloaded-{{ checksum "pom.xml" }}
- authmereloaded-
- run: mvn -T 2 -B dependency:go-offline
2018-04-19 12:19:59 +02:00
- save_cache:
2018-04-19 12:29:30 +02:00
paths:
- ~/.m2
key: authmereloaded-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B package
2018-04-19 12:19:59 +02:00
- store_test_results:
2018-04-19 12:29:30 +02:00
path: target/surefire-reports
2018-04-19 12:19:59 +02:00
- store_artifacts:
2018-04-19 12:29:30 +02:00
path: target/*.jar
build_and_test_jdk10:
working_directory: ~/authmereloaded-jdk10
2018-04-19 12:19:59 +02:00
docker:
2018-04-19 12:29:30 +02:00
- image: circleci/openjdk:10-jdk
2018-04-19 12:19:59 +02:00
environment:
2018-04-19 12:29:30 +02:00
MAVEN_OPTS: -Xmx2048m
2018-04-19 12:19:59 +02:00
steps:
- checkout
- restore_cache:
2018-04-19 12:29:30 +02:00
keys:
- authmereloaded-{{ checksum "pom.xml" }}
- authmereloaded-
- run: mvn -T 2 -B dependency:go-offline
2018-04-19 12:19:59 +02:00
- save_cache:
2018-04-19 12:29:30 +02:00
paths:
- ~/.m2
key: authmereloaded-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B package
2018-04-19 12:19:59 +02:00
- store_test_results:
2018-04-19 12:29:30 +02:00
path: target/surefire-reports
- store_artifacts:
path: target/*.jar
2018-01-31 19:31:54 +01:00
workflows:
2018-04-19 12:19:59 +02:00
version: 2
build_and_test:
jobs:
- build_and_test_jdk8
2018-04-19 12:29:30 +02:00
- build_and_test_jdk10