forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
170cbb8
commit 25b3c30
Showing
8 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
|
||
if [ ${TASK} == "lint" ]; then | ||
make lint || exit -1 | ||
echo "Check documentations of c++ code..." | ||
make doc 2>log.txt | ||
(cat log.txt| grep -v ENABLE_PREPROCESSING |grep -v "unsupported tag") > logclean.txt | ||
echo "---------Error Log----------" | ||
cat logclean.txt | ||
echo "----------------------------" | ||
(cat logclean.txt|grep warning) && exit -1 | ||
(cat logclean.txt|grep error) && exit -1 | ||
exit 0 | ||
fi | ||
|
||
|
||
if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then | ||
# use g++-4.8 for linux | ||
if [ ${CXX} == "g++" ]; then | ||
export CXX=g++-4.8 | ||
fi | ||
fi | ||
|
||
if [ ${TASK} == "cpp_test" ]; then | ||
make -f dmlc-core/scripts/packages.mk gtest | ||
echo "GTEST_PATH="${CACHE_PREFIX} >> config.mk | ||
make test || exit -1 | ||
for test in tests/cpp/*_test; do | ||
./$test || exit -1 | ||
done | ||
exit 0 | ||
fi | ||
|
||
# run two test one for cython, one for ctypes | ||
if [ ${TASK} == "python_test" ]; then | ||
make clean | ||
make -j all || exit -1 | ||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then | ||
python -m nose tests/python/ || exit -1 | ||
python3 -m nose tests/python/ || exit -1 | ||
else | ||
nosetests tests/python/ || exit -1 | ||
nosetests3 tests/python/ || exit -1 | ||
fi | ||
|
||
python -m nose tests/python/ || exit -1 | ||
python3 -m nose tests/python/ || exit -1 | ||
make cython || exit -1 | ||
make cython3 || exit -1 | ||
python -m nose tests/python/ || exit -1 | ||
python3 -m nose tests/python/ || exit -1 | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
|
||
if [ ${TRAVIS_OS_NAME} == "osx" ]; then | ||
brew update | ||
brew install python3 | ||
if [ ${TASK} == "python_test" ]; then | ||
python -m pip install nose numpy cython --user `whoami` | ||
python3 -m pip install nose numpy cython --user `whoami` | ||
fi | ||
fi | ||
|
||
if [ ${TASK} == "lint" ]; then | ||
pip install cpplint 'pylint==1.4.4' 'astroid==1.3.6' --user `whoami` | ||
fi | ||
|
||
if [ ! -d dmlc-core ]; then | ||
git clone https://github.com/dmlc/dmlc-core | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/bash |