File tree Expand file tree Collapse file tree 2 files changed +25
-10
lines changed
Expand file tree Collapse file tree 2 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ inputs:
1010 description : ' scons -target=?'
1111 default : mdk5
1212 required : true
13- STD :
14- default : c99
15- required : true
16- description : ' cppcheck std '
13+ CPPCHECK :
14+ default : --enable=all --std= c99 applications/
15+ required : false
16+ description : ' cppcheck options '
1717runs :
1818 using : ' docker'
1919 image : ' Dockerfile'
Original file line number Diff line number Diff line change 11#! /bin/sh
2- if [ ! -d ~ /.env ]; then ln /env ~ /.env -s; fi
2+ if [ ! -d ~ /.env ]; then
3+ ln /env ~ /.env -s
4+ fi
35export PATH=$PATH :~ /.env/tools/scripts
46sed -i -e ' s/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=y/CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE=n/g' /env/tools/scripts/cmds/.config
5- pkgs --printenv
6- pkgs --list
7- pkgs --update
8- cppcheck --enable=all --std=${STD} applications/
9- scons --target=${TARGET}
7+
8+ if [-f SConstruct]; then
9+ pkgs --printenv
10+ pkgs --list
11+ pkgs --update
12+ if [[ -z " ${CPPCHECK} " ]]; then
13+ cppcheck ${CPPCHECK}
14+ fi
15+
16+
17+ if [[ -z " ${TARGET} " ]]; then
18+ scons --target=${TARGET}
19+ else
20+ scons
21+ fi
22+ else
23+ echo " fogret checkout?"
24+ fi
You can’t perform that action at this time.
0 commit comments