Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit f21da17

Browse files
authored
Switch to CircleCI (#50)
☝️
1 parent f7996d2 commit f21da17

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/openjdk:8-jdk
6+
working_directory: ~/nexus-repository-r
7+
environment:
8+
MAVEN_OPTS: -Xmx3200m
9+
steps:
10+
- checkout
11+
- run:
12+
name: Get project version
13+
command: |
14+
echo 'export PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)' >> $BASH_ENV
15+
- restore_cache:
16+
keys:
17+
- v1-dependencies-{{ checksum "pom.xml" }}
18+
- v1-dependencies-
19+
- run: mvn dependency:go-offline
20+
- save_cache:
21+
paths:
22+
- ~/.m2
23+
key: v1-dependencies-{{ checksum "pom.xml" }}
24+
- run: mvn package -PbuildKar
25+
- run:
26+
name: Save test results
27+
command: |
28+
mkdir -p ~/test-results/junit/
29+
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
30+
when: always
31+
- store_test_results:
32+
path: ~/test-results
33+
- store_artifacts:
34+
path: ~/test-results/junit
35+
- run:
36+
name: Prep artifacts
37+
command: |
38+
mkdir /tmp/artifacts && \
39+
cp /home/circleci/nexus-repository-r/target/nexus-repository-r-* /tmp/artifacts
40+
- store_artifacts:
41+
path: /tmp/artifacts

.travis.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-->
1515
# Nexus Repository R Format
1616

17-
[![Build Status](https://travis-ci.org/sonatype-nexus-community/nexus-repository-r.svg?branch=master)](https://travis-ci.org/sonatype-nexus-community/nexus-repository-r) [![Join the chat at https://gitter.im/sonatype/nexus-developers](https://badges.gitter.im/sonatype/nexus-developers.svg)](https://gitter.im/sonatype/nexus-developers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![DepShield Badge](https://depshield.sonatype.org/badges/sonatype-nexus-community/nexus-repository-r/depshield.svg)](https://depshield.github.io)
17+
[![CircleCI](https://circleci.com/gh/sonatype-nexus-community/nexus-repository-r.svg?style=svg)](https://circleci.com/gh/sonatype-nexus-community/nexus-repository-r) [![Join the chat at https://gitter.im/sonatype/nexus-developers](https://badges.gitter.im/sonatype/nexus-developers.svg)](https://gitter.im/sonatype/nexus-developers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![DepShield Badge](https://depshield.sonatype.org/badges/sonatype-nexus-community/nexus-repository-r/depshield.svg)](https://depshield.github.io)
1818

1919
# Table Of Contents
2020
* [Developing](#developing)

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
<groupId>org.apache.maven.plugins</groupId>
9898
<artifactId>maven-surefire-plugin</artifactId>
9999
<version>2.20</version>
100+
<configuration>
101+
<useSystemClassLoader>false</useSystemClassLoader>
102+
</configuration>
100103
</plugin>
101104

102105
<plugin>

0 commit comments

Comments
 (0)