forked from RT-Thread/RT-AK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
30 lines (28 loc) · 835 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:
- User1Story1
default:
tags:
- win10_powershell
U1S1_job:
stage: User1Story1
variables:
BSP: $CI_PROJECT_DIR/RT-AK/tmp/sdk-bsp-artpi
EXT_TOOLS: $CI_PROJECT_DIR/RT-AK/tmp/windows
RTT_EXEC_PATH: $CI_PROJECT_DIR/RT-AK/tmp/mingw/bin
CPUS: 6
script:
# test
- pip install wget scons
- scons -v
- cd $CI_PROJECT_DIR/RT-AK/test
- python download_file.py
- python -c "import os; print(os.getenv('BSP')); print(os.path.exists(os.getenv('BSP')))"
- ls $CI_PROJECT_DIR/RT-AK/tmp
# run rt_ai_tools
- cd $CI_PROJECT_DIR/RT-AK/rt_ai_tools
- python aitools.py --project=$BSP --model='./Models/keras_mnist.h5' --platform='stm32' --ext_tools=$EXT_TOOLS --clear
- echo "Run RT-AK Tools done."
# compiler
- cd $BSP
- scons -j $CPUS
- echo "Compiler done."