core-lightning/.gitlab-ci.yml

39 lines
1.4 KiB
YAML
Raw Normal View History

2016-11-14 22:46:55 +01:00
# This file is used to build and test `lightningd`
# Image automatically built by https://github.com/cdecker/dockerfiles/tree/master/lightning/ci
image: cdecker/lightning-ci:latest
build:
stage: build
before_script:
- >-
curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN"
-X POST
--data '{"state": "pending", "description": "Gitlab-CI is building the commit", "context": "gitlab-ci"}'
2023-05-30 13:42:21 +02:00
https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true
2016-11-14 22:46:55 +01:00
script:
- make
- make -j 12 check
- make check-source
artifacts:
paths:
- daemon/lightningd
- daemon/lightning-cli
update-status-fail:
image: tutum/curl
stage: deploy
when: on_failure
script:
- >-
2023-05-30 13:42:21 +02:00
curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "failure", "description": "Gitlab-CI build failed, please contact @cdecker for details about build #$CI_JOB_ID.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true
2016-11-14 22:46:55 +01:00
update-status-success:
image: tutum/curl
stage: deploy
when: on_success
script:
- >-
2023-05-30 13:42:21 +02:00
curl -s -H "Authorization: token $GITHUB_STATUS_TOKEN" -X POST --data '{"state": "success", "description": "Gitlab-CI build succeeded.", "context": "gitlab-ci"}' https://api.github.com/repos/ElementsProject/lightning/statuses/$CI_COMMIT_SHA || true