/
.travis.yml
69 lines (61 loc) · 1.86 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This will run on Travis' 'new' container-based infrastructure
# Blacklist
branches:
only:
- master
# OS
dist: trusty
sudo: required
# Environment variables
env:
global:
# - NUM_THREADS=4
- 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_PYTHON3: false
# WITH_CUDA: true
# WITH_CUDNN: true
- BUILD_NAME="default-cmake-cuda8"
# - BUILD_NAME="default-make-cuda8" WITH_CMAKE=false
- BUILD_NAME="default-cmake-cpu" WITH_CUDA=false
# - BUILD_NAME="python3-cmake-cuda8" WITH_PYTHON3=true
# - BUILD_NAME="default-make-cuda8_nocudnn" WITH_CUDNN=false
# Install apt dependencies
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
# Install Caffe and OP dependencies
install:
- sudo bash ./3rdparty/ubuntu/install_ubuntu_deps_and_cuda.sh
- sudo apt-get -y install libatlas-base-dev
- sudo apt-get -y install libopencv-dev
# Running CMake
before_script:
- bash ./cmake/travis/configure.sh
# Equivalent for CMake
# - mkdir build
# - cd build
# - cmake -DBUILD_CAFFE=ON -DDOWNLOAD_BODY_25_MODEL=OFF -DDOWNLOAD_BODY_COCO_MODEL=OFF -DDOWNLOAD_FACE_MODEL=OFF -DDOWNLOAD_HAND_MODEL=OFF -DDOWNLOAD_BODY_MPI_MODEL=OFF ..
# Build your code e.g., by calling make
script:
- bash ./cmake/travis/run_make.sh
# - make -j`nproc`
# Equivalent to make -j`nproc`
# - no_cores=`cat /proc/cpuinfo | grep processor | wc -l`
# - make -j${no_cores}
# Generate and deploy documentation
after_success:
- cd $TRAVIS_BUILD_DIR
- chmod +x .github/generate_gh_pages.sh
- ./.github/generate_gh_pages.sh