Skip to content

Commit

Permalink
Slight build improvements (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada authored Oct 22, 2020
1 parent e75aa1e commit d159571
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:

jobs:
build:
env:
GRADLE_PATH: /tmp/gradle
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte
Expand All @@ -17,7 +15,7 @@ jobs:
- name: Cache java deps
uses: actions/cache@v2
with:
path: ${{ env.GRADLE_PATH }}
path: ~/.gradle
key: gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
gradle-
Expand Down Expand Up @@ -45,17 +43,17 @@ jobs:
STRIPE_INTEGRATION_TEST_CREDS: ${{ secrets.STRIPE_INTEGRATION_TEST_CREDS }}

- name: Build
run: ./gradlew build --no-daemon -g ${{ env.GRADLE_PATH }}
run: ./gradlew --no-daemon build

- name: Ensure no file change
run: git status --porcelain && test -z "$(git status --porcelain)"

- name: Run Integration Tests
run: ./gradlew integrationTest --no-daemon -g ${{ env.GRADLE_PATH }}
run: ./gradlew --no-daemon integrationTest

- name: Build Core Docker Images
if: success() && github.ref == 'refs/heads/master'
run: ./gradlew composeBuild --no-daemon -g ${{ env.GRADLE_PATH }}
run: ./gradlew --no-daemon composeBuild
env:
GIT_REVISION: ${{ github.sha }}

Expand Down
3 changes: 0 additions & 3 deletions airbyte-webapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ task test(type: NpmTask) {
inputs.file 'package-lock.json'
}

clean {
delete "${projectDir}/node_modules/"
}
1 change: 0 additions & 1 deletion airbyte-workers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies {

implementation project(':airbyte-config:models')
implementation project(':airbyte-db')
implementation project(':airbyte-integrations')
implementation project(':airbyte-json-validation')
implementation project(':airbyte-protocol:models')

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.vfs.watch=true
13 changes: 13 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Configure the gradle enterprise plugin to enable build scans. Enabling the plugin at the top of the settings file allows the build scan to record
// as much information as possible.
plugins {
id "com.gradle.enterprise" version "3.4.1"
}

gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}

import groovy.io.FileType

rootProject.name = 'airbyte'
Expand Down

0 comments on commit d159571

Please sign in to comment.