forked from hyperledger-web3j/web3j-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
53 lines (42 loc) · 853 Bytes
/
.gitlab-ci.yml
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
43
44
45
46
47
48
49
50
51
52
53
image: gradle:alpine
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .m2/repository/
- target/
stages:
- build
- deploy
build:
stage: build
script:
- ./gradlew clean build -x test
# Unit tests are disabled as solidity (solc) is not available in gitlab-ci.
#unit tests:
# stage: test
# script:
# - ./gradlew test
publish_snapshot:
stage: deploy
script:
- ./gradlew clean release -x test
environment:
name: publish_snapshot
when: manual
only:
- /release/.*$/
publish_release:
stage: deploy
script:
- ./gradlew clean release -x test
environment:
name: publish_release
when: manual
only:
- /release/.*$/
- master