blob: 85f5fa949f56d2deae877178278d3d14fc5c9e55 [file] [log] [blame] [raw]
version: 2
jobs:
build:
branches:
only:
- dev
working_directory: ~/glowstone
docker:
- image: circleci/openjdk:8-jdk-browsers
steps:
- checkout
- restore_cache:
key: glowstone-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: glowstone-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B -s .circleci/maven.xml source:jar javadoc:jar deploy
- store_test_results:
path: target/surefire-reports
- store_artifacts:
path: target/glowstone.jar
destination: glowstone.jar
- store_artifacts:
path: target/glowstone-javadoc.jar
destination: glowstone-javadoc.jar
- store_artifacts:
path: target/glowstone-sources.jar
destination: glowstone-sources.jar
build_other:
branches:
ignore:
- dev
working_directory: ~/glowstone
docker:
- image: circleci/openjdk:8-jdk-browsers
steps:
- checkout
- restore_cache:
key: glowstone-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: glowstone-{{ checksum "pom.xml" }}
- run: mvn -T 2 -B package
- store_test_results:
path: target/surefire-reports
- store_artifacts:
path: target/glowstone.jar
destination: glowstone.jar