-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed additional Gradle Root (examples) (#455)
* Updated ci jobs. * Change how integration tests are run. * Removed unused .gitignore files. * There is no longer a gradle wrapper in "examples" * Merging examples into a single module. * Consolidated Examples * Disable examples GitHub action. This can be done in a follow up ticket. Integration tests cover the majority of this already. * Fixed logic.
- Loading branch information
1 parent
fdacae8
commit d5765ff
Showing
58 changed files
with
229 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
# This workflow will build the project with Gradle and run examples | ||
# Because secrets are not available on external forks, this job is expected to fail | ||
# on external pull requests. | ||
|
||
name: Run Examples | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
examples: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Gradle Wrapper Validation | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9.10' | ||
- run: python -m pip install ply && pip install six | ||
|
||
- name: Grant execute permissions | ||
run: chmod +x gradlew && chmod +x update-submodules | ||
&& chmod +x generate-ci-auth-file && chmod +x scripts/run-examples | ||
|
||
- name: Set up submodules | ||
run: ./update-submodules | ||
|
||
- name: Obtain access token | ||
env: | ||
APP_KEY: ${{ secrets.APP_KEY }} | ||
APP_SECRET: ${{ secrets.APP_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | ||
run: ./generate-ci-auth-file | ||
|
||
- name: Run Examples | ||
run: ./scripts/run-examples $(find `pwd` -name auth_output) | ||
## This workflow will build the project with Gradle and run examples | ||
## Because secrets are not available on external forks, this job is expected to fail | ||
## on external pull requests. | ||
# | ||
#name: Run Examples | ||
# | ||
#on: | ||
# push: | ||
# branches: [ main ] | ||
# pull_request: | ||
# branches: [ main ] | ||
# | ||
#jobs: | ||
# examples: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - name: Gradle Wrapper Validation | ||
# uses: gradle/wrapper-validation-action@v1 | ||
# | ||
# - name: Set up JDK 11 | ||
# uses: actions/setup-java@v2 | ||
# with: | ||
# java-version: '11' | ||
# distribution: 'zulu' | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v3 | ||
# with: | ||
# python-version: '3.9.10' | ||
# - run: python -m pip install ply && pip install six | ||
# | ||
# - name: Grant execute permissions | ||
# run: chmod +x gradlew && chmod +x update-submodules | ||
# && chmod +x generate-ci-auth-file && chmod +x scripts/run-examples | ||
# | ||
# - name: Set up submodules | ||
# run: ./update-submodules | ||
# | ||
# - name: Obtain access token | ||
# env: | ||
# APP_KEY: ${{ secrets.APP_KEY }} | ||
# APP_SECRET: ${{ secrets.APP_SECRET }} | ||
# REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | ||
# run: ./generate-ci-auth-file | ||
# | ||
# - name: Run Examples | ||
# run: ./scripts/run-examples $(find `pwd` -name auth_output) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
...account-info-legacy/src/main/java/com/dropbox/core/examples/account_info_legacy/Main.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
examples/account-info/src/main/java/com/dropbox/core/examples/account_info/Main.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'kotlin' | ||
apply from: '../../gradle/integration-test-config.gradle' | ||
|
||
description = 'Consolidated Examples' | ||
|
||
dependencies { | ||
testImplementation 'org.eclipse.jetty.aggregate:jetty-server:8.1.18.v20150929' | ||
testImplementation 'javax.servlet:javax.servlet-api:3.1.0' | ||
testImplementation 'org.apache.commons:commons-lang3:3.4' | ||
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.7.9' | ||
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.7.4' | ||
testImplementation(dropboxJavaSdkLibs.test.junit) | ||
testImplementation(dropboxJavaSdkLibs.okhttp3) | ||
testImplementation("org.json:json:20220320") | ||
} |
Oops, something went wrong.