forked from Aduhkiss/Magma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (35 loc) · 730 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
42 lines (35 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
image: openjdk:8-jdk
stages:
- setup
- test
- build
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
- export GRADLE_USER_HOME=`pwd`/.gradle
- git submodule sync --recursive
- git submodule update --init --recursive
cache:
paths:
- .gradle/wrapper
- .gradle/caches
setup:
stage: setup
script:
- chmod +x gradlew && ./gradlew setup
- mv src/main/java/org* projects/Kettle/src/main/java
test:
stage: test
script:
- chmod +x gradlew && ./gradlew check
build:
stage: build
script:
- chmod +x gradlew && ./gradlew build githubRelease
only:
- master
artifacts:
paths:
- build/distributions/*.jar
after_script:
- echo "End CI"