forked from antmicro/dts2repl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ci.yml
66 lines (63 loc) · 2.19 KB
/
.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
64
65
66
stages:
- Test
- Release
- TestRelease
Compare repls:
stage: Test
image:
name: debian:bullseye
variables:
RENODE_VERSION: "latest"
DEBIAN_FRONTEND: "noninteractive"
GET_CUSTOM_RENODE_REVISION: ""
artifacts:
paths:
- ci-output/repls
- ci-output/robot-results
- ci-output/regressions
when: always
before_script:
- apt -qqy update > /dev/null 2> /dev/null
- apt -qqy install automake autoconf libtool g++ coreutils policykit-1 libgtk2.0-dev uml-utilities gtk-sharp2 wget jq git curl python3 python3-pip parallel xz-utils rename > /dev/null 2> /dev/null
- apt -qqy install mono-complete 2> /dev/null > /dev/null
- mono --version
- ./ci/prepare.sh
script:
- ./ci/test.sh
- ./ci/process_test_results.sh
Static release:
stage: Release
image:
name: debian:bullseye
before_script:
- apt -qqy update > /dev/null 2> /dev/null
- apt -qqy install patchelf build-essential python3-pip zlib1g-dev > /dev/null 2> /dev/null
- pip3 install pyinstaller staticx
script:
- pip3 install requests -t deps
- pyinstaller --onefile dts2repl/dts2repl.py --paths deps --add-data dts2repl/models.json:. --add-data dts2repl/overlay:overlay
- staticx dist/dts2repl dts2repl-static
- chmod +x dts2repl-static
- cp dist/dts2repl dts2repl-dynamic
- chmod +x dts2repl-dynamic
artifacts:
paths:
- dts2repl-static
- dts2repl-dynamic
Test Static release:
stage: TestRelease
image:
name: debian:bullseye
dependencies: [Static release]
script:
- ./dts2repl-static https://zephyr-samples-builder.storage.googleapis.com/zephyr/063ce9caf54fa656f02ae48f3c9d537659a10dec/96b_aerocore2/hello_world/hello_world.dts --output test.repl
- apt -qqy update > /dev/null 2> /dev/null
- apt -qqy --no-install-recommends install wget ca-certificates > /dev/null 2> /dev/null
- wget https://zephyr-samples-builder.storage.googleapis.com/zephyr/063ce9caf54fa656f02ae48f3c9d537659a10dec/96b_aerocore2/hello_world/hello_world.dts
- ./dts2repl-static hello_world.dts --output test2.repl
- diff test.repl test2.repl || true
- cat test.repl
artifacts:
paths:
- test.repl
- test2.repl