Skip to content

Commit

Permalink
testing named executors
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartbryson committed Feb 14, 2019
1 parent 9fcc6f9 commit 9711711
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
version: 2.0
version: 2.1

executors:
build-test: # declares a reusable executor
machine: true
working_directory: ~/workspace

jobs:
checkout:
machine: true
executor: build-test
steps:
- checkout
release:
machine: true
executor: build-test
steps:
- restore_cache:
keys:
- gradle-{{ checksum "build.gradle" }}-{{ checksum "settings.gradle" }}
- run: ./gradlew release -Prelease.disableChecks -Prelease.localOnly
build:
machine: true
executor: build-test
steps:
- run:
name: Build and Test
Expand All @@ -25,7 +30,7 @@ jobs:
path: build/libs
destination: libs
test:
machine: true
executor: build-test
steps:
- run:
name: Build and Test
Expand All @@ -38,7 +43,7 @@ jobs:
- store_test_results:
path: build/test-results
publish:
machine: true
executor: build-test
steps:
- run: ./gradlew publishPlugins githubRelease

Expand Down

0 comments on commit 9711711

Please sign in to comment.