Browse Source

test(build): check whether code/files have been processed by CMake

pull/4196/head
Zetok Zalbavar 9 years ago
parent
commit
f0574167c6
No known key found for this signature in database
GPG Key ID: C953D3880212068A
  1. 17
      .travis/build-ubuntu-14-04.sh

17
.travis/build-ubuntu-14-04.sh

@ -182,5 +182,18 @@ test_qtox() { @@ -182,5 +182,18 @@ test_qtox() {
cd -
}
build_qtox
test_qtox
# CMake is supposed to process files, e.g. ones with versions.
# Check whether those changes have been committed.
check_if_differs() {
echo "Checking whether files processed by CMake have been committed..."
echo ""
# ↓ `0` exit status only if there are no changes
git diff --exit-code
}
main() {
build_qtox
test_qtox
check_if_differs
}
main

Loading…
Cancel
Save