-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (41 loc) · 990 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
image: $DOCKER_REGISTRY_PREFIX/2smart/utils/combined-ci-image:latest
services:
- name: $DOCKER_REGISTRY_PREFIX/2smart/base-images/docker-dind
alias: docker
stages:
- test
- build
- release
before_script:
- git clone https://oauth2:$ACCESS_TOKEN@$DOCKER_UTILS_REPO_URL
- mv docker-utils/utils.sh docker.sh
before_script:
- git clone https://oauth2:$ACCESS_TOKEN@$DOCKER_UTILS_REPO_URL
- mv docker-utils/utils.sh docker.sh
lint:
before_script:
- apk add make gcc g++ python3 linux-headers udev
- npm install serialport --build-from-source
- npm ci
stage: test
script:
- npm run test:lint
only:
- 'merge_requests'
- 'master'
build:
stage: build
script:
- ./docker.sh rundaemon
- ./docker.sh build
- ./docker.sh push
- ./docker.sh push_bridge_type_to_demo
only:
- 'master'
release:
stage: release
script:
- ./docker.sh rundaemon
- ./docker.sh release_bridge_type
only:
- 'release'