1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
set -e
echo "--TRAVIS VARIABLES--"
echo "TRAVIS_OS_NAME:" ${TRAVIS_OS_NAME}
echo "TRAVIS_BUILD_DIR:" ${TRAVIS_BUILD_DIR}
echo "--CUSTOM VARIABLES--"
echo "TASK:" ${TASK}
echo "OS:" ${OS}
# LINUX TASKS
if [ ${TRAVIS_OS_NAME} == "linux" ]; then
if [ ${TASK} == "cpp_test" ]; then
docker run -w '/root/ngraph/build' test_ngraph make unit-test-check
fi
if [ ${TASK} == "python2_test" ]; then
docker run -w '/root/ngraph/python' -e NGRAPH_ONNX_IMPORT_ENABLE=TRUE test_ngraph tox -e py27
fi
if [ ${TASK} == "python3_test" ]; then
docker run -w '/root/ngraph/python' -e NGRAPH_ONNX_IMPORT_ENABLE=TRUE test_ngraph tox -e py3
fi
fi
# MacOS TASKS
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
if [ ${TASK} == "cpp_test" ]; then
cd ${TRAVIS_BUILD_DIR}/build
make unit-test-check
fi
fi