forked from joltify-finance/joltifyChain_legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
30 lines (26 loc) · 882 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
stages: # List of stages for jobs, and their order of execution
- build
- test
# - deploy
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- make build
unit-test-job: # This job runs in the test stage.
stage: test # It only starts when the job in the build stage completes successfully.
script:
- echo "Running unit tests... This will take about 60 seconds."
- sleep 60
- echo "Code coverage is 90%"
lint_code:
image: golangci/golangci-lint
stage: test
before_script:
- go get mvdan.cc/gofumpt
script:
- golangci-lint run -v
# deploy-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
# script:
# - echo "Deploying application..."
# - echo "Application successfully deployed."