Update build.sh

This commit is contained in:
Me No Dev 2018-06-28 23:45:52 +02:00 committed by GitHub
parent 47421b869f
commit eb4e891344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,9 @@
#!/bin/bash #!/bin/bash
# run cmake tests
tools/check_cmakelists.sh
if [ $? -ne 0 ]; then exit 1; fi
# run sketch tests
tools/build-tests.sh
if [ $? -ne 0 ]; then exit 1; fi
# zip the package if tagged build, otherwise finish here
if [ ! -z "$TRAVIS_TAG" ]; then if [ ! -z "$TRAVIS_TAG" ]; then
# zip the package if tagged build
tools/build-release.sh -a$ESP32_GITHUB_TOKEN tools/build-release.sh -a$ESP32_GITHUB_TOKEN
else
# run cmake and sketch tests
tools/check_cmakelists.sh && tools/build-tests.sh
fi fi