Commit f27c2289 authored by Michał Karzyński's avatar Michał Karzyński Committed by Scott Cyphers

Enable Travis CI (#806)

* Enable Travis CI

* Enable Travis CI - update README

* Travis CI - Parallel testing
parent 38c70648
FROM ubuntu:16.04
# nGraph dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
clang-3.9 \
clang-format-3.9 \
git \
curl \
zlib1g \
zlib1g-dev \
libtinfo-dev && \
apt-get clean autoclean && apt-get autoremove -y
# Python dependencies
RUN apt-get update && apt-get install -y \
python \
python3 \
python-dev \
python3-dev \
python-pip && \
apt-get clean autoclean && apt-get autoremove -y
RUN pip install --upgrade pip setuptools wheel
RUN pip install tox
# Prepare nGraph
COPY . /root/ngraph
RUN mkdir /root/ngraph/build
WORKDIR /root/ngraph/build
RUN cmake ../ -DNGRAPH_USE_PREBUILT_LLVM=TRUE
RUN make -j 8
RUN make install
# Prepare nGraph Python API
RUN mkdir /root/ngraph/python/build
WORKDIR /root/ngraph/python/build
RUN cmake -DNGRAPH_INSTALL_PREFIX=/root/ngraph_dist ..
RUN make -j 8
ENV NGRAPH_CPP_BUILD_PATH /root/ngraph_dist
ENV LD_LIBRARY_PATH /root/ngraph_dist/lib
ENV PYBIND_HEADERS_PATH /root/ngraph/python/build/pybind11
# Test nGraph and nGraph Python API
CMD cd /root/ngraph/build && make check ; cd /root/ngraph/python && tox
#!/bin/bash
echo "TASK:" ${TASK}
if [ ${TASK} == "cpp_test" ]; then
docker run -w '/root/ngraph/build' test_ngraph make check
fi
if [ ${TASK} == "python2_test" ]; then
docker run -w '/root/ngraph/python' test_ngraph tox -e py27
fi
if [ ${TASK} == "python3_test" ]; then
docker run -w '/root/ngraph/python' test_ngraph tox -e py35
fi
sudo: required
language: cpp
services:
- docker
env:
- TASK=cpp_test
- TASK=python2_test
- TASK=python3_test
before_install:
- docker build -t test_ngraph -f .ci/travis/ubuntu/Dockerfile .
install: true
script:
- .ci/travis/ubuntu/run_test.sh
branches:
only:
- "master"
# nGraph library
# nGraph library [![Build Status][build-status-badge]][build-status]
Welcome to Intel® nGraph™, an open source C++ library, compiler and
runtime. This project enables modern compute platforms to run and
......@@ -20,7 +20,7 @@ supports a variety of backends used by Deep Learning (DL) frameworks.
## Documentation
See our [install] docs for how to get started.
See our [install] docs for how to get started.
For this early release, we provide [framework integration guides] to
compile MXNet and TensorFlow-based projects. If you already have a
......@@ -42,6 +42,9 @@ to improve the library:
* Ensure you can build the product and run all the examples with your patch.
* In the case of a larger feature, create a test.
* Submit a [pull request].
* Make sure your PR passes all CI tests. Note: our [Travis-CI][build-status] service
runs only on a CPU backend on Linux. We will run additional tests
in other environments.
* We will review your contribution and, if any additional fixes or
modifications are necessary, may provide feedback to guide you. When
accepted, your pull request will be merged to the repository.
......@@ -52,3 +55,5 @@ to improve the library:
[pull request]: https://github.com/NervanaSystems/ngraph/pulls
[how to import]: http://ngraph.nervanasys.com/docs/latest/howto/import.html
[ngraph-ecosystem]: doc/sphinx/source/graphics/ngraph-ecosystem.png "nGraph Ecosystem"
[build-status]: https://travis-ci.org/NervanaSystems/ngraph/branches
[build-status-badge]: https://travis-ci.org/NervanaSystems/ngraph.svg?branch=master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment