.travis.yml 1010 Bytes
Newer Older
1 2
language: cpp

3 4 5
git:
  depth: false

6 7 8 9 10
matrix:
  include:
  - os: linux
    sudo: required
    services: docker
11
    language: python
12 13 14 15
    env: TASK=python2_test OS=ubuntu
  - os: linux
    sudo: required
    services: docker
16
    language: python
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
    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
42
    cd -
43
  fi
44 45

script:
46
- .ci/travis/run_test.sh
47 48 49

branches:
  only:
50
  - "master"