Skip to content

Commit

Permalink
Merge branch 'develop' into feature/ide
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Oct 23, 2020
2 parents 333250b + a985d45 commit c5bb3df
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 7 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: ci
on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # all history

- name: Set up Environment
uses: allenevans/set-env@v1.0.0
with:
PROJECT_NAME: 2P-Kt
GOPTS: "--no-daemon --console=plain"

- name: Install Java
uses: actions/setup-java@v1
with:
java-version: 15 # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64

- name: Ensure Gradle Wrapper is Executable
run: chmod +x gradlew

- name: Setup Gradle
run: ./gradlew

- name: Setup Gradle
run: ./gradlew $GOPTS

- name: Check Code Style
run: ./gradlew $OPTS ktlintCheck --parallel

- name: Archive KtLint Reports
uses: actions/upload-artifact@v2
with:
name: ktlint-reports
path: '**/build/reports/ktlint'

- name: Compile
run: ./gradlew $OPTS assemble --parallel

- name: Test JVM
run: ./gradlew $OPTS jvmTest

- name: Archive JVM Test Reports
uses: actions/upload-artifact@v2
with:
name: jvm-test-reports
path: '**/build/reports/tests/jvmTest'

- name: Test JS
run: ./gradlew $OPTS jsTest

- name: Archive JS Test Reports
uses: actions/upload-artifact@v2
with:
name: js-test-reports
path: '**/build/reports/tests/jsTest'

- name: Generate Doc
run: ./gradlew $OPTS dokkaHtml --parallel

- name: Archive Doc
uses: actions/upload-artifact@v2
with:
name: api-references
path: build/dokka/htmlMultiModule
13 changes: 7 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ variables:
BEFORE_TASK: ""
AFTER_TASK: ""
GCMD: "gradle"
BUILD_TASK: "clean assemble"
CHECK_CODE_TASK: "ktlintCheck"
BUILD_TASK: "clean assemble --parallel"
CHECK_CODE_TASK: "ktlintCheck --parallel"
TEST_TASK: "check -x dokkaHtml"
TEST_JVM_TASK: "jvmTest -x dokkaHtml"
TEST_JS_TASK: "clean jsTest -x dokkaHtml"
DOC_TASK: "dokkaHtml"
SIGN_TASK: "signAllPublications"
BINTRAY_TASK: "publishAllToBintray"
CENTRAL_TASK: "publishAllPublicationsToMavenRepository"
DOC_TASK: "dokkaHtml --parallel"
SIGN_TASK: "signAllPublications --parallel"
BINTRAY_TASK: "publishAllToBintray --parallel"
CENTRAL_TASK: "publishAllPublicationsToMavenRepository --parallel"
JS_COMPILE_TASK: "clean jsMain"
NPM_PUBLISH_TASK: "npmPublish"
GITHUB_PUBLISH_TASK: "githubRelease"
Expand All @@ -33,6 +33,7 @@ cache:
- .gradle/
- build/
- '**/build/'
- core/src/commonMain/kotlin/it/unibo/tuprolog/Info.kt

stages:
- check
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kotlin.code.style=official
kotlin.mpp.stability.nowarn=true
systemProp.org.gradle.internal.http.connectionTimeout=180000
systemProp.org.gradle.internal.http.socketTimeout=180000
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1024m
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g

javaVersion=8

Expand Down

0 comments on commit c5bb3df

Please sign in to comment.