Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
1a7e2583
Unverified
Commit
1a7e2583
authored
Aug 31, 2018
by
Michał Karzyński
Committed by
GitHub
Aug 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OS X to Travis (#1527)
parent
e6dad531
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
35 deletions
+48
-35
Dockerfile
.ci/travis/centos/Dockerfile
+1
-1
Dockerfile
.ci/travis/ubuntu/Dockerfile
+3
-12
.travis.yml
.travis.yml
+44
-22
No files found.
.ci/travis/centos/Dockerfile
View file @
1a7e2583
...
...
@@ -26,7 +26,7 @@ COPY . /root/ngraph
RUN
mkdir
/root/ngraph/build
WORKDIR
/root/ngraph/build
RUN
cmake ..
-L
-DNGRAPH_CPU_ENABLE
=
FALSE
-DNGRAPH_ONNX_IMPORT_ENABLE
=
TRUE
-DCMAKE_INSTALL_PREFIX
=
"~/ngraph_dist"
RUN
cmake ..
-L
-DNGRAPH_CPU_ENABLE
=
FALSE
-DNGRAPH_ONNX_IMPORT_ENABLE
=
TRUE
RUN
make
-j
"
$(
nproc
)
"
RUN
make
install
...
...
.ci/travis/ubuntu/Dockerfile
View file @
1a7e2583
FROM
ubuntu:16.04
#buildtype argument
ARG
buildtype=regular
# nGraph dependencies
RUN
apt-get update
&&
apt-get
install
-y
\
build-essential
\
...
...
@@ -28,6 +25,7 @@ RUN apt-get update && apt-get install -y \
python3-dev
\
python-pip
&&
\
apt-get clean autoclean
&&
apt-get autoremove
-y
RUN
pip
install
--upgrade
pip setuptools wheel
RUN
pip
install
tox
...
...
@@ -35,15 +33,8 @@ RUN pip install tox
COPY
. /root/ngraph
RUN
mkdir
/root/ngraph/build
WORKDIR
/root/ngraph/build
RUN if
[
"
$buildtype
"
=
"interpreter"
]
;
then
\
cmake ..
-DNGRAPH_CPU_ENABLE
=
FALSE
-DNGRAPH_USE_PREBUILT_LLVM
=
TRUE
-DNGRAPH_ONNX_IMPORT_ENABLE
=
TRUE
\
-DCMAKE_INSTALL_PREFIX
=
"~/ngraph_dist"
;
\
else
\
cmake ..
-DNGRAPH_USE_PREBUILT_LLVM
=
TRUE
-DNGRAPH_ONNX_IMPORT_ENABLE
=
TRUE
-DCMAKE_INSTALL_PREFIX
=
"~/ngraph_dist"
;
\
fi
RUN
make
RUN
cmake ..
-DNGRAPH_CPU_ENABLE
=
FALSE
-DNGRAPH_USE_PREBUILT_LLVM
=
TRUE
-DNGRAPH_ONNX_IMPORT_ENABLE
=
TRUE
-DCMAKE_INSTALL_PREFIX
=
"~/ngraph_dist"
RUN
make
-j
"
$(
nproc
)
"
RUN
make
install
# Prepare nGraph Python API
...
...
.travis.yml
View file @
1a7e2583
sudo
:
required
language
:
cpp
services
:
-
docker
git
:
depth
:
false
env
:
-
TASK=cpp_test OS=ubuntu
-
TASK=cpp_test OS=centos
-
TASK=python2_test OS=ubuntu
-
TASK=python3_test OS=ubuntu
before_install
:
-
|
if [ "TASK" == "cpp_test" ]; then
docker build -t test_ngraph -f .ci/travis/$OS/Dockerfile .
else
docker build -t test_ngraph -f .ci/travis/$OS/Dockerfile --build-arg buildtype=interpreter .
fi
install
:
true
matrix
:
include
:
-
os
:
linux
sudo
:
required
services
:
docker
env
:
TASK=python2_test OS=ubuntu
-
os
:
linux
sudo
:
required
services
:
docker
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
fi
script
:
-
.ci/travis/run_test.sh
-
|
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
.ci/travis/run_test.sh
fi
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cd $TRAVIS_BUILD_DIR/build
make unit-test-check
fi
branches
:
only
:
-
"
master"
-
"
master"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment