.travis.yml 1.2 KB
Newer Older
B
Bikramjot Hanzra 已提交
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
# This will run on Travis' 'new' container-based infrastructure

# Blacklist
branches:
  only:
    - master

# OS
dist: trusty 
sudo: required

# Environment variables
env:
  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

# Install dependencies
addons:
  apt:
    packages:
      - doxygen
      - doxygen-doc
      - doxygen-latex
      - doxygen-gui
      - graphviz

# Build your code e.g. by calling make
script:
G
gineshidalgo99 已提交
32
  - ./3rdparty/ubuntu/install_ubuntu_deps_and_cuda.sh
B
Bikramjot Hanzra 已提交
33 34 35 36 37
  - sudo apt-get -y install libatlas-base-dev
  - sudo apt-get -y install libopencv-dev
  - pip install --upgrade numpy
  - mkdir build
  - cd build
38
  - 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 ..
B
Bikramjot Hanzra 已提交
39 40 41 42 43 44 45 46
  - 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