.travis.yml 5.3 KB
Newer Older
B
Bikramjot Hanzra 已提交
1 2 3 4 5 6 7
# This will run on Travis' 'new' container-based infrastructure

# Blacklist
branches:
  only:
    - master

8 9 10
# Environment variables + OS + other parameters
global:
  - GH_REPO_NAME: openpose
11
  - DOXYFILE: $TRAVIS_BUILD_DIR/scripts/doc_autogeneration.doxygen
12 13 14 15 16 17 18 19 20 21 22 23 24
  # Set this in Environment Variables on travis-ci.org
  # - GH_REPO_REF: github.com/<user_name>/openpose.git
matrix:
  # Use a build matrix to test many builds in parallel
  # envvar defaults:
  #   WITH_CMAKE: true
  #   WITH_PYTHON: false
  #   WITH_CUDA: true
  #   WITH_CUDNN: true
  #   WITH_OPEN_CL: false
  #   WITH_MKL: false
  include:
  # Ubuntu 16.04
25 26 27 28 29
  # Ubuntu 16.04 - Default - CMake - CUDA
  - os: linux
    dist: xenial
    env: NAME="U16-default-cmake-cuda8"
    sudo: required
G
gineshidalgo99 已提交
30
  # Ubuntu 16.04 - Python - CMake - CUDA
31 32
  - os: linux
    dist: xenial
G
gineshidalgo99 已提交
33
    env: NAME="U16-python-cmake-cuda8" WITH_PYTHON=true
34 35 36 37 38 39
    sudo: required
    # Generate and deploy documentation
    after_success:
      - cd $TRAVIS_BUILD_DIR
      - chmod +x scripts/generate_gh_pages.sh
      - ./scripts/generate_gh_pages.sh
G
gineshidalgo99 已提交
40
  # Ubuntu 16.04 - Python - CMake - CPU
41 42
  - os: linux
    dist: xenial
G
gineshidalgo99 已提交
43 44
    env: NAME="U16-python-cmake-cpu" WITH_PYTHON=true WITH_CUDA=false
    sudo: required
45
  # Ubuntu 16.04 - Python - CMake - OpenCL
G
gineshidalgo99 已提交
46 47
  - os: linux
    dist: xenial
48
    env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true
49
    sudo: required
G
gineshidalgo99 已提交
50
  # Ubuntu 16.04 - Python - CMake - CPU - Debug
51 52
  - os: linux
    dist: xenial
G
gineshidalgo99 已提交
53 54
    env: NAME="U16-python-cmake-cpu-debug" WITH_PYTHON=true WITH_CUDA=false WITH_DEBUG=true
    sudo: required
G
gineshidalgo99 已提交
55 56 57 58 59
  # Ubuntu 16.04 - Python - CMake - CPU - Unity
  - os: linux
    dist: xenial
    env: NAME="U16-python-cmake-cpu-unity" WITH_PYTHON=true WITH_UNITY=true WITH_CUDA=false
    sudo: required
G
gineshidalgo99 已提交
60 61 62 63 64 65

  # Mac OSX
  # Mac OSX - Python - CMake - CPU
  - os: osx
    osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
    env: NAME="OSX-python-cmake-cpu" WITH_CUDA=false WITH_PYTHON=true
66
    sudo: required
67
  # Mac OSX - Python - CMake - OpenCL
G
gineshidalgo99 已提交
68 69
  - os: osx
    osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
70
    env: NAME="OSX-default-cmake-opencl" WITH_CUDA=false WITH_OPEN_CL=true
G
gineshidalgo99 已提交
71 72 73 74
    sudo: required
  # Mac OSX - Python - CMake - CPU - Debug
  - os: osx
    osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
G
gineshidalgo99 已提交
75 76 77 78 79 80
    env: NAME="OSX-python-cmake-cpu-debug" WITH_CUDA=false WITH_PYTHON=true WITH_DEBUG=true
    sudo: required
  # Mac OSX - Python - CMake - CPU - Unity
  - os: osx
    osx_image: xcode9.4 # xcode10.1 does not work with Python # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
    env: NAME="OSX-python-cmake-cpu-unity" WITH_CUDA=false WITH_PYTHON=true WITH_UNITY=true
G
gineshidalgo99 已提交
81
    sudo: required
82
  # Mac OSX - Default - CMake - CPU
R
Raaj 已提交
83 84
  - os: osx
    osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
85
    env: NAME="OSX-default-cmake-cpu" WITH_CUDA=false
R
Raaj 已提交
86
    sudo: required
G
gineshidalgo99 已提交
87 88 89 90 91 92 93 94

  # # TO-DO: To be implemented
  # # Windows
  # # Windows - Default - CMake - CUDA
  # - os: windows
  #   env: NAME="W10-default-cmake-cuda8"

  # Ubuntu (others)
95 96 97 98 99
  # Ubuntu 16.04 - Default - CMake - CPU
  - os: linux
    dist: xenial
    env: NAME="U16-default-cmake-cpu" WITH_CUDA=false
    sudo: required
100
  # Ubuntu 16.04 - Default - Make - CUDA
101 102
  - os: linux
    dist: xenial
103
    env: NAME="U16-default-make-cuda8" WITH_CMAKE=false
104
    sudo: required
105
  # # TO-DO: To be implemented
106 107 108 109 110 111 112 113 114 115
  # # Ubuntu 16.04 - Default - CMake - CPU MKL
  # - os: linux
  #   dist: xenial
  #   env: NAME="U16-default-cmake-cpu-mkl" WITH_CUDA=false WITH_MKL=true
  #   sudo: required
  # # Ubuntu 16.04 - Python - CMake - OpenCL
  # - os: linux
  #   dist: xenial
  #   env: NAME="U16-python-cmake-opencl" WITH_PYTHON=true WITH_CUDA=false WITH_OPEN_CL=true
  #   sudo: required
116 117 118 119 120 121
  # # Unnecessary/redundant ones
  # # Ubuntu 16.04 - Default - CMake - CUDA - no cuDNN
  # - os: linux
  #   dist: xenial
  #   env: NAME="U16-default-cmake-cuda8-nocudnn" WITH_CUDNN=false
  #   sudo: required
122 123 124 125 126 127 128 129 130 131
  # Ubuntu 14.04 - Default - CMake - CPU
  - os: linux
    dist: trusty
    env: NAME="U14-default-cmake-cpu" WITH_CUDA=false
    sudo: required
  # Ubuntu 14.04 - Default - Make - CUDA
  - os: linux
    dist: trusty
    env: NAME="U14-default-make-cuda8" WITH_CMAKE=false
    sudo: required
132 133 134 135 136 137
  # # Unnecessary/redundant ones
  # # Ubuntu 14.04 - Default - CMake - CUDA
  # - os: linux
  #   dist: trusty
  #   env: NAME="U14-default-cmake-cuda8"
  #   sudo: required
138

G
gineshidalgo99 已提交
139
# Install apt dependencies
B
Bikramjot Hanzra 已提交
140 141 142 143 144 145 146 147 148
addons:
  apt:
    packages:
      - doxygen
      - doxygen-doc
      - doxygen-latex
      - doxygen-gui
      - graphviz

G
gineshidalgo99 已提交
149 150
# Install Caffe and OP dependencies
install:
151
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash scripts/travis/install_deps_ubuntu.sh ; fi
R
Raaj 已提交
152
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash scripts/travis/install_deps_osx.sh ; fi
153
  - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then exit 99 ; fi
G
gineshidalgo99 已提交
154 155 156

# Running CMake
before_script:
157
  - bash scripts/travis/configure.sh
G
gineshidalgo99 已提交
158 159 160

# Build your code e.g., by calling make
script:
161 162
  - bash scripts/travis/run_make.sh
  - bash scripts/travis/run_tests.sh