Skip to content

Instantly share code, notes, and snippets.

@haint
Forked from daicham/.gitlab-ci.yml
Created April 5, 2022 08:28
Show Gist options
  • Select an option

  • Save haint/133213cdbf2f317e9aa175d24e427640 to your computer and use it in GitHub Desktop.

Select an option

Save haint/133213cdbf2f317e9aa175d24e427640 to your computer and use it in GitHub Desktop.

Revisions

  1. @daicham daicham revised this gist Jul 12, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .gitlab-ci.yml
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,8 @@ build:
    paths:
    - build/libs/*.jar
    expire_in: 1 week
    only:
    - master

    test:
    stage: test
  2. @daicham daicham revised this gist Jul 5, 2016. No changes.
  3. @daicham daicham created this gist Jul 2, 2016.
    38 changes: 38 additions & 0 deletions .gitlab-ci.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    image: java:8-jdk

    stages:
    - build
    - test
    - deploy

    before_script:
    # - echo `pwd` # debug
    # - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
    - export GRADLE_USER_HOME=`pwd`/.gradle

    cache:
    paths:
    - .gradle/wrapper
    - .gradle/caches

    build:
    stage: build
    script:
    - ./gradlew assemble
    artifacts:
    paths:
    - build/libs/*.jar
    expire_in: 1 week

    test:
    stage: test
    script:
    - ./gradlew check

    deploy:
    stage: deploy
    script:
    - ./deploy

    after_script:
    - echo "End CI"