1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-05-28 03:41:25 +03:00
esp8266/tests/ci/style_check.sh
2022-03-04 02:28:47 +03:00

16 lines
385 B
Bash
Executable File

#!/bin/bash
#
# CI job for checking examples style
set -e -x
root=$(git rev-parse --show-toplevel)
${root}/tests/restyle.sh
# Revert changes which formatter might have done to the submodules,
# as we don't want to fail the build because of the 3rd party libraries
git --version || true
git submodule foreach --recursive 'git reset --hard'
git diff --exit-code -- $TRAVIS_BUILD_DIR