-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
63 lines (56 loc) · 1.4 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
52
53
54
55
56
57
58
59
60
61
62
63
image: peterzuger/arch-dev
stages:
- prepare
- prebuild
- build
- test
# global variables
variables:
GIT_SUBMODULE_STRATEGY: recursive
CMODULES: $CI_PROJECT_DIR/..
fetch-micropython:
stage: prepare
script:
- git clone --recurse-submodules https://github.com/micropython/micropython.git
artifacts:
expose_as: 'micropython-repo'
paths:
- micropython/
exclude:
- micropython/.git/**/*
- micropython/lib/pico-sdk/**/*
- micropython/lib/tinyusb/**/*
mpy-cross:
stage: prebuild
script:
- make -C micropython/mpy-cross
artifacts:
expose_as: 'mpy-cross'
paths:
- micropython/mpy-cross/build/mpy-cross
dependencies:
- fetch-micropython
unix:
stage: build
script:
- make -C micropython/ports/unix USER_C_MODULES=$CMODULES CFLAGS_EXTRA="-DMODULE_HYDROGEN_ENABLED=1" FROZEN_MANIFEST=$CMODULES/hydrogen-micropython/tests/manifest.py
artifacts:
expose_as: 'micropython'
paths:
- micropython/ports/unix/build-standard/micropython
dependencies:
- mpy-cross
- fetch-micropython
stm32:
stage: build
script:
- make -C micropython/ports/stm32 USER_C_MODULES=$CMODULES CFLAGS_EXTRA="-DMODULE_HYDROGEN_ENABLED=1"
dependencies:
- mpy-cross
- fetch-micropython
unix-test:
stage: test
script:
- micropython/ports/unix/build-standard/micropython -m unittest tests/test_hydrogen
dependencies:
- unix