SWS-998 - Switch off CircleCI workflow

This commit is contained in:
Greg Turnquist
2017-10-13 16:10:48 -05:00
parent 0f80b6eb5c
commit 0a4a5589cb
2 changed files with 14 additions and 26 deletions

View File

@@ -1,34 +1,20 @@
version: 2
jobs:
test:
build:
docker:
- image: circleci/openjdk:8u141
steps:
- checkout
- run: ./mvnw -Pdistribute,snapshot,docs clean test
test_next:
docker:
- image: circleci/openjdk:8u141
steps:
- checkout
- run: ./mvnw -Pspringnext clean test
deploy:
docker:
- image: circleci/openjdk:8u141
steps:
- checkout
- run: ./deploy.bash
workflows:
version: 2
test_and_deploy:
- test
- test_next
- deploy:
requires:
- test
- test_next
- checkout
- run:
name: Test current version
command: ./mvnw -Pdistribute,snapshot,docs clean test
- run:
name: Test Spring.NEXT
command: ./mvnw -Pspringnext clean test
- run:
name: Deploy to Artifactory
command: ./deploy.bash
general:
branches:
ignore:

View File

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