Skip to content

Commit 0a4a558

Browse files
committed
SWS-998 - Switch off CircleCI workflow
1 parent 0f80b6e commit 0a4a558

File tree

2 files changed

+14
-26
lines changed

2 files changed

+14
-26
lines changed

circle.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
11
version: 2
22
jobs:
3-
test:
3+
build:
44
docker:
55
- image: circleci/openjdk:8u141
66
steps:
7-
- checkout
8-
- run: ./mvnw -Pdistribute,snapshot,docs clean test
9-
test_next:
10-
docker:
11-
- image: circleci/openjdk:8u141
12-
steps:
13-
- checkout
14-
- run: ./mvnw -Pspringnext clean test
15-
deploy:
16-
docker:
17-
- image: circleci/openjdk:8u141
18-
steps:
19-
- checkout
20-
- run: ./deploy.bash
21-
22-
workflows:
23-
version: 2
24-
test_and_deploy:
25-
- test
26-
- test_next
27-
- deploy:
28-
requires:
29-
- test
30-
- test_next
31-
7+
- checkout
8+
- run:
9+
name: Test current version
10+
command: ./mvnw -Pdistribute,snapshot,docs clean test
11+
- run:
12+
name: Test Spring.NEXT
13+
command: ./mvnw -Pspringnext clean test
14+
- run:
15+
name: Deploy to Artifactory
16+
command: ./deploy.bash
17+
3218
general:
3319
branches:
3420
ignore:

deploy.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
if [ "${CIRCLE_BRANCH}" == "master" ] || [ "${CIRCLE_BRANCH}" == "2.x" ]; then
44
./mvnw -Pdistribute,snapshot,docs clean deploy
5+
else
6+
echo "We only deploy 'master' and '2.x' branches"
57
fi

0 commit comments

Comments
 (0)