Skip to content

Commit b37dd52

Browse files
authored
Merge pull request #42 from carlpett/circleci-2.0
Upgrade to CircleCI 2.0
2 parents a2d476f + 8aa4e86 commit b37dd52

File tree

2 files changed

+57
-27
lines changed

2 files changed

+57
-27
lines changed

.circleci/config.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: maven:3-jdk-9
6+
steps:
7+
- checkout
8+
- run: git describe --always --tags | sed -r 's/^v//' | tee VERSION
9+
- run: mvn package
10+
- run:
11+
name: Save test results
12+
command: |
13+
mkdir -p ~/junit/
14+
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
15+
when: always
16+
- store_test_results:
17+
path: ~/junit
18+
- store_artifacts:
19+
path: target/xUnit.zip
20+
release:
21+
docker:
22+
- image: maven:3-jdk-9
23+
steps:
24+
- checkout
25+
- run: git describe --always --tags | sed -r 's/^v//' | tee VERSION
26+
- run: mvn package
27+
- run:
28+
name: Download github-release tool
29+
command: |
30+
curl -sL 'https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2' | \
31+
tar xvjf - --strip-components 3 -C $HOME/bin
32+
- run:
33+
name: Save test results
34+
command: |
35+
mkdir -p ~/junit/
36+
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
37+
when: always
38+
- store_test_results:
39+
path: ~/junit
40+
- run:
41+
name: Upload release
42+
command: |
43+
github-release upload --user carlpett --repo xUnit-TeamCity --tag $CIRCLE_TAG --name xUnit.zip --file target/xUnit.zip
44+
- store_artifacts:
45+
path: target/xUnit.zip
46+
47+
workflows:
48+
version: 2
49+
build_and_release:
50+
jobs:
51+
- build
52+
- release:
53+
filters:
54+
branches:
55+
ignore: /.*/
56+
tags:
57+
only: /^v.*/

circle.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)