File tree Expand file tree Collapse file tree 2 files changed +57
-27
lines changed Expand file tree Collapse file tree 2 files changed +57
-27
lines changed Original file line number Diff line number Diff line change
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.*/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments