Skip to content

Commit

Permalink
parallel ci (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdsap authored Sep 16, 2023
1 parent 271be43 commit 4c5881a
Showing 1 changed file with 67 additions and 19 deletions.
86 changes: 67 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ orbs:
codecov: codecov/[email protected]
executor: machine
jobs:
build:
ktlint:
machine:
image: ubuntu-2004:2023.02.1

image: 'ubuntu-2004:2023.02.1'
working_directory: ~/repo

environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false'
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false
TERM: dumb

steps:
- checkout
- run:
Expand All @@ -21,35 +18,86 @@ jobs:
- run:
name: assemble
command: ./gradlew assemble
assemble:
machine:
image: 'ubuntu-2004:2023.02.1'
working_directory: ~/repo
environment:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false
TERM: dumb
steps:
- checkout
- run:
name: assemble
command: ./gradlew assemble
pluginTest:
machine:
image: 'ubuntu-2004:2023.02.1'
working_directory: ~/repo
environment:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false
TERM: dumb
steps:
- checkout
- run:
name: style
command: ./gradlew collectUnitTest
publisherTest:
machine:
image: 'ubuntu-2004:2023.02.1'
working_directory: ~/repo
environment:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false
TERM: dumb
steps:
- checkout
- run:
name: test plugins
command: |
java --version
./gradlew collectUnitTest --stacktrace --info
name: style
command: ./gradlew collectUnitTestLibs
sample:
machine:
image: 'ubuntu-2004:2023.02.1'
working_directory: ~/repo
environment:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport" -Dorg.gradle.parallel=true -Dorg.gradle.daemon=false
TERM: dumb
steps:
- checkout
- run:
name: test libs
name: build sample
command: |
java --version
./gradlew collectUnitTestLibs --stacktrace --info
cd sample
./gradlew assemble
deploy-snapshot:
working_directory: ~/repo
machine:
image: ubuntu-2004:2023.02.1
image: 'ubuntu-2004:2023.02.1'
steps:
- checkout
- run:
name: snapshot
command: ./gradlew publishTalaiotLibPublicationToSnapshotsRepository

workflows:
version: 2.1
build-snap:
jobs:
- build
- ktlint
- assemble
- pluginTest
- publisherTest
- deploy-snapshot:
requires:
- build
- assemble
- ktlint
- assemble
- pluginTest
- publisherTest
filters:
branches:
only: master
- sample:
requires:
- assemble
- ktlint
- assemble
- pluginTest
- publisherTest

0 comments on commit 4c5881a

Please sign in to comment.