This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch travis-testing
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 31990f5ab9e8c8b5eac5e6802ec138c4c842aace
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Fri May 17 13:34:59 2019 -0700
[WIP] Add style check commit
---
.travis.yml | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index d246723..d6d1274 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -42,6 +42,11 @@ matrix:
- TEST=RAT
- DEBUG=1
+ # Run style checks
+ - os: linux
+ env:
+ - TEST=STYLE
+
# newt build <targets>
- os: linux
env:
@@ -129,7 +134,7 @@ matrix:
before_install:
- printenv
- export GOPATH=$HOME/gopath
- - if [ "${TEST}" != "RAT" ]; then go version; fi
+ - if [ "${TEST}" != "RAT" && "${TEST}" != "STYLE" ]; then go version; fi
install:
- git clone https://github.com/runtimeco/mynewt-travis-ci $HOME/ci
@@ -137,6 +142,8 @@ install:
- |
if [ "${TEST}" == "RAT" ]; then
pip install requests
+ elif [ "${TEST}" == "STYLE" ]; then
+ # do nothing
else
$HOME/ci/${TRAVIS_OS_NAME}_travis_install.sh
fi
@@ -163,10 +170,12 @@ script:
pic32mx470_6lp_clicker pic32mz2048_wi-fire sensorhub
native"
- |
- if [ "${TEST}" != "RAT" ]; then
- $HOME/ci/run_test.sh
- else
+ if [ "${TEST}" == "RAT" ]; then
python $HOME/ci/check_license.py
+ elif [ "${TEST}" == "STYLE" ]; then
+ $HOME/ci/check_style.sh
+ else
+ $HOME/ci/run_test.sh
fi
cache: