ci: check git commit (fc2a27d8)

This commit is contained in:
chenyudong
2019-07-05 22:22:34 +08:00
parent e214daa325
commit 74e3b96630
8 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,33 @@
stages:
- check
- deploy
check_lib_reversion:
stage: check
except:
- master
- /^release\/v/
image: $CI_DOCKER_REGISTRY/esp32-ci-env
script:
- GIT_COMMIT_ID=`git log --pretty="%s" -1 | grep -o '([0-9a-f]*)' | tail -1 | cut -c 2-8`
- echo "GIT_COMMIT_ID is "$GIT_COMMIT_ID
- test $(echo -n $GIT_COMMIT_ID | wc -c) -eq 7
- grep $GIT_COMMIT_ID libcoexist.a
- grep $GIT_COMMIT_ID libcore.a
- grep $GIT_COMMIT_ID libespnow.a
- grep $GIT_COMMIT_ID libespnow.a
- grep $GIT_COMMIT_ID libnet80211.a
- grep $GIT_COMMIT_ID libpp.a
- grep $GIT_COMMIT_ID libsmartconfig.a
- grep $GIT_COMMIT_ID-remote libnet80211.a
- test $(grep $GIT_COMMIT_ID-dirty *.a | wc -l) -eq 0
- test $(xtensa-esp32-elf-nm *.a | grep -w printf | wc -l) -eq 0
- test $(xtensa-esp32-elf-nm *.a | grep -w ets_printf | wc -l) -eq 0
- if [ -e libwps.a ]; then exit 1; fi
- if [ -e libwpa.a ]; then exit 1; fi
- if [ -e libwpa2.a ]; then exit 1; fi
push_master_to_github:
stage: deploy
only:

Binary file not shown.

BIN
libcore.a

Binary file not shown.

Binary file not shown.

BIN
libmesh.a

Binary file not shown.

Binary file not shown.

BIN
libpp.a

Binary file not shown.

Binary file not shown.