|
@@ -12,16 +12,21 @@ jobs:
|
12
|
12
|
steps:
|
13
|
13
|
- run: git clone https://github.com/DMDirc/Meta.git .
|
14
|
14
|
- run: git submodule update --init --remote
|
15
|
|
- - run: |
|
16
|
|
- cd plugins
|
17
|
|
- git remote set-url origin https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git:
|
18
|
|
- if [ -n "$CIRCLE_PR_NUMBER" ]; then
|
19
|
|
- git fetch origin pull/$CIRCLE_PR_NUMBER/head:circleci;
|
20
|
|
- else
|
21
|
|
- git fetch origin $CIRCLE_BRANCH:circleci;
|
22
|
|
- fi
|
23
|
|
- - run: cd plugins && git fetch --tags
|
24
|
|
- - run: cd plugins && git checkout circleci
|
|
15
|
+ - run:
|
|
16
|
+ working_directory: plugins
|
|
17
|
+ command: |
|
|
18
|
+ git remote set-url origin https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
|
|
19
|
+ if [ -n "$CIRCLE_PR_NUMBER" ]; then
|
|
20
|
+ git fetch origin pull/$CIRCLE_PR_NUMBER/head:circleci;
|
|
21
|
+ else
|
|
22
|
+ git fetch origin $CIRCLE_BRANCH:circleci;
|
|
23
|
+ fi
|
|
24
|
+ - run:
|
|
25
|
+ working_directory: plugins
|
|
26
|
+ command: git fetch --tags
|
|
27
|
+ - run:
|
|
28
|
+ working_directory: plugins
|
|
29
|
+ command: git checkout circleci
|
25
|
30
|
- run: ./gradlew dependencies
|
26
|
31
|
- run: ./gradlew --stacktrace plugins:jars plugins:tests plugins:coveralls
|
27
|
32
|
- save_cache:
|
|
@@ -34,12 +39,15 @@ jobs:
|
34
|
39
|
key: v1-gradle-cache-{{ checksum "build.gradle" }}
|
35
|
40
|
- run:
|
36
|
41
|
name: Prepare test output
|
|
42
|
+ when: always
|
37
|
43
|
command: |
|
38
|
44
|
mkdir -p ~/test-results/junit/
|
39
|
45
|
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
|
40
|
46
|
- store_test_results:
|
|
47
|
+ when: always
|
41
|
48
|
path: ~/test-results
|
42
|
49
|
- store_artifacts:
|
|
50
|
+ when: always
|
43
|
51
|
path: ~/test-results/junit
|
44
|
52
|
- store_artifacts:
|
45
|
53
|
path: plugins/dist
|