Skip to content

Commit

Permalink
add check stage in ci and fix upload to central
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Oct 22, 2020
1 parent cbe24c0 commit 9a66eb5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ cache:
- '**/build/'

stages:
- check
- build
- test
- doc
- sign
- deploy

Compile & Check Style:
Check Code Style:
stage: check
script:
- $GCMD $BEFORE_TASK $CHECK_CODE_TASK $AFTER_TASK $GOPTS

Compile:
stage: build
script:
- $GCMD $BEFORE_TASK $BUILD_TASK $AFTER_TASK $GOPTS
- $GCMD $BEFORE_TASK $CHECK_CODE_TASK $AFTER_TASK $GOPTS

Test JVM:
stage: test
Expand Down Expand Up @@ -75,7 +80,6 @@ Sign Artefacts:
Deploy to Bintray:
stage: deploy
script:
- $GCMD $BEFORE_TASK $DOC_TASK $AFTER_TASK $GOPTS
- $GCMD $BEFORE_TASK $BINTRAY_TASK $AFTER_TASK $GOPTS
environment:
name: Bintray
Expand All @@ -86,8 +90,7 @@ Deploy to Bintray:
Deploy to Maven Central:
stage: deploy
script:
- $GCMD $BEFORE_TASK $DOC_TASK $AFTER_TASK $GOPTS
- $GCMD $BEFORE_TASK $BINTRAY_TASK $AFTER_TASK $GOPTS
- $GCMD $BEFORE_TASK $CENTRAL_TASK $AFTER_TASK $GOPTS
environment:
name: Maven Central
url: "https://oss.sonatype.org"
Expand Down

0 comments on commit 9a66eb5

Please sign in to comment.