Fix building linux examples and test for future failure (#284)

* fix building linux examples and test for future failure

* fix cd back and typo
This commit is contained in:
JP Smith 2017-06-14 11:23:55 -04:00 committed by GitHub
parent b12224d8a6
commit 5109e2835f
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import random, string, random
chars = string.ascii_uppercase + string.digits

View File

@ -1,14 +1,23 @@
#!/bin/bash
RV=0
cd examples/linux
if make; then
echo "Successfully built Linux examples"
else
echo "Failed to build Linux examples"
RV=1
fi
cd ../..
coverage erase
coverage run -m unittest discover tests/ 2>&1 >/dev/null | tee travis_tests.log
DID_OK=$(tail -n1 travis_tests.log)
RV=1
if [[ "${DID_OK}" == OK* ]]
then
echo "All functionality tests passed :)"
RV=0
else
echo "Some functionality tests failed :("
RV=1
fi
measure_cov() {