forked from NervanaSystems/ngraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1010 Bytes
/
.travis.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
language: cpp
git:
depth: false
matrix:
include:
- os: linux
sudo: required
services: docker
language: python
env: TASK=python2_test OS=ubuntu
- os: linux
sudo: required
services: docker
language: python
env: TASK=python3_test OS=ubuntu
- os: linux
sudo: required
services: docker
env: TASK=cpp_test OS=ubuntu
- os: linux
sudo: required
services: docker
env: TASK=cpp_test OS=centos
- os: osx
env: TASK=cpp_test OS=osx
install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker build -t test_ngraph -f .ci/travis/$OS/Dockerfile .
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
mkdir $TRAVIS_BUILD_DIR/build
cd $TRAVIS_BUILD_DIR/build
cmake .. -DNGRAPH_CPU_ENABLE=FALSE \
-DNGRAPH_USE_PREBUILT_LLVM=TRUE \
-DNGRAPH_ONNX_IMPORT_ENABLE=TRUE \
-DCMAKE_INSTALL_PREFIX="~/ngraph_dist"
make -j 2
cd -
fi
script:
- .ci/travis/run_test.sh
branches:
only:
- "master"