forked from home-assistant/hassbian-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
30 lines (29 loc) · 891 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:
- build
- test
- deploy
build-package:
stage: build
image: debian
script:
- apt update
- apt -y upgrade
- apt install -y curl
- curl -sL https://gitlab.com/hassbian/CI/raw/master/hassbian-scripts/build_and_test.sh | bash -s ${CI_COMMIT_REF_NAME}
test-package:
stage: test
image: debian
script:
- apt update
- apt -y upgrade
- apt install -y curl
- curl -sL https://gitlab.com/hassbian/CI/raw/master/hassbian-scripts/build_and_test.sh | bash -s ${CI_COMMIT_REF_NAME}
- apt -y install ${CI_PROJECT_DIR}/package.deb
deploy-to-repo:
stage: deploy
image: debian
script:
- apt update
- apt -y upgrade
- apt install -y curl git
- curl -sL https://gitlab.com/hassbian/CI/raw/master/hassbian-scripts/distribute.sh | bash -s ${CI_COMMIT_REF_NAME}