-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (48 loc) · 1.37 KB
/
.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
# epaper-idf
#
# Copyright (c) 2021 Jeremy Carter <[email protected]>
#
# This code is released under the license terms contained in the
# file named LICENSE, which is found in the top-level folder in
# this project. You must agree to follow those license terms,
# otherwise you aren't allowed to copy, distribute, or use any
# part of this project in any way.
image: alpine:latest
build-job:
stage: build
image: espressif/idf:latest
# image: espressif/idf:release-v4.2
script:
- git checkout $CI_COMMIT_REF_NAME
- sed -i "s#[email protected]:#https://gitlab.com/#g" .gitmodules
- sed -i "s#github.com/#gitlab.com/#g" .gitmodules
- git submodule update --init --recursive
- mkdir certs && touch certs/ca_cert.pem certs/ca_cert_conf.pem certs/ca_key_conf.pem
- cp sdkconfig.ci sdkconfig
- idf.py build
- cp build/partition_table/partition-table.bin .
- cp build/ota_data_initial.bin .
- cp build/bootloader/bootloader.bin .
- cp build/epaper-idf.bin .
- cp build/www.bin .
artifacts:
name: "epaper-idf-bin-$CI_COMMIT_REF_NAME"
paths:
- partition-table.bin
- ota_data_initial.bin
- bootloader.bin
- epaper-idf.bin
- www.bin
only:
- master
- v0.1
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
expire_in: 1 day
only:
- master