.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 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Environment variables + OS + other parameters
global:
  - GH_REPO_NAME: openpose
  - DOXYFILE: $TRAVIS_BUILD_DIR/doc/doc_autogeneration.doxygen
  # 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
G
gineshidalgo99 已提交
25
  # Ubuntu 16.04 - Python - CMake - CUDA
26 27
  - os: linux
    dist: xenial
G
gineshidalgo99 已提交
28
    env: NAME="U16-python-cmake-cuda8" WITH_PYTHON=true
29 30 31 32 33 34
    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 已提交
35
  # Ubuntu 16.04 - Python - CMake - CPU
36 37
  - os: linux
    dist: xenial
G
gineshidalgo99 已提交
38 39 40 41 42 43
    env: NAME="U16-python-cmake-cpu" WITH_PYTHON=true WITH_CUDA=false
    sudo: required
  # Ubuntu 16.04 - Default - CMake - CUDA
  - os: linux
    dist: xenial
    env: NAME="U16-default-cmake-cuda8"
44
    sudo: required
45
  # Ubuntu 16.04 - Default - CMake - CPU
46 47
  - os: linux
    dist: xenial
48
    env: NAME="U16-default-cmake-cpu" WITH_CUDA=false
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
G
gineshidalgo99 已提交
67 68 69 70 71 72 73 74
  # Mac OSX - Default - CMake - CPU
  - os: osx
    osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
    env: NAME="OSX-default-cmake-cpu" WITH_CUDA=false
    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
R
Raaj 已提交
82 83 84 85 86
  # Mac OSX - Default - CMake - OpenCL
  - os: osx
    osx_image: xcode10.1 # Versions: https://docs.travis-ci.com/user/languages/objective-c#supported-xcode-versions
    env: NAME="OSX-default-cmake-opencl" WITH_CUDA=false WITH_OPEN_CL=true
    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
  # Ubuntu 16.04 - Default - Make - CUDA
96 97
  - os: linux
    dist: xenial
98
    env: NAME="U16-default-make-cuda8" WITH_CMAKE=false
99
    sudo: required
100
  # # TO-DO: To be implemented
101 102 103 104 105
  # # 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
R
Raaj 已提交
106 107 108 109 110
  # Ubuntu 16.04 - Default - CMake - OpenCL
  - os: linux
    dist: xenial
    env: NAME="U16-default-cmake-opencl" WITH_CUDA=false WITH_OPEN_CL=true
    sudo: required
111 112 113 114 115
  # # 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