Skip to content

Commit

Permalink
reorganize and rewrite to support kotlin multiplatform (open-toast#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewparmet authored and ogolberg committed Jan 2, 2024
1 parent f9506b6 commit 6fda068
Show file tree
Hide file tree
Showing 541 changed files with 37,786 additions and 12,893 deletions.
61 changes: 55 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: 2.1

orbs:
node: circleci/[email protected]

parameters:
benchmarks:
type: boolean
Expand All @@ -16,7 +19,7 @@ executors:
- image: alvrme/alpine-android:android-31-jdk<<parameters.jdk>>
environment:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
resource_class: medium+
resource_class: large

commands:
read_cache:
Expand All @@ -43,6 +46,22 @@ jobs:
steps:
- checkout
- read_cache
- node/install

- run:
name: Install protobufjs
command: |
npm install [email protected]
- run:
name: Install long.js
command: |
npm install [email protected]
- run:
name: Install Firefox
command: |
apk add firefox
- run:
name: Build and test
Expand Down Expand Up @@ -72,6 +91,7 @@ jobs:

- store_test_results:
path: ~/test-results

- store_artifacts:
path: ~/test-results/junit

Expand All @@ -89,22 +109,51 @@ jobs:
steps:
- checkout
- read_cache
- node/install

- run:
name: Install protobufjs
command: |
npm install [email protected]
- run:
name: Install long.js
command: |
npm install [email protected]
- run:
name: Install Firefox
command: |
apk add firefox
- attach_workspace:
at: build/repos

- run:
name: Integration tests
command: cd gradle-plugin-integration-test && ./gradlew clean build -Dkotlin.version=<<parameters.kotlin>> --stacktrace
command: cd gradle-plugin-integration-test && ./gradlew clean build -Dkotlin-integration.version=<<parameters.kotlin>> -Djava-integration.version=<<parameters.jdk>> --stacktrace

- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always

- store_test_results:
path: ~/test-results

- store_artifacts:
path: ~/test-results/junit

release:
executor: builder
steps:
- checkout
- read_cache
- run:
name: Publish release
command: "./gradlew build -x test publishToRemote publishPlugins -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.network.retry.max.attempts=1 -Dorg.gradle.internal.publish.checksums.insecure=true"
name: Publish release
command: "./gradlew publish publishPlugins -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.network.retry.max.attempts=1 -Dorg.gradle.internal.publish.checksums.insecure=true"
- run:
name: Finalize release
command: "./gradlew closeAndReleaseRepository -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.network.retry.max.attempts=1 -Dorg.gradle.internal.publish.checksums.insecure=true"
Expand All @@ -121,8 +170,8 @@ workflows:
- build
matrix:
parameters:
jdk: ["8", "11", "17"]
kotlin: ["1.6.21", "1.7.21", "1.8.22"]
jdk: ["11", "17"]
kotlin: ["1.8.22", "1.9.10"]
- release:
context: OSS
filters:
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ out
.idea
*.iml

testing/conformance-driver/failing_tests.txt
protokt-codegen/src/test/resources/com/toasttab/protokt/test-proto-bin-request.bin
testing/conformance/runner/failing_tests.txt
protokt-codegen/src/test/resources/protokt/v1/codegen/test-proto-bin-request.bin
node_modules/
package-lock.json
package.json
Loading

0 comments on commit 6fda068

Please sign in to comment.