提交 85132874 编写于 作者: G Gines Hidalgo

Travis names replaced to generic CI

Signed-off-by: NGines Hidalgo <gineshidalgo99@gmail.com>
上级 64b4ba12
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# # Environment variables + OS + other parameters # # Environment variables + OS + other parameters
# global: # global:
# - GH_REPO_NAME: openpose # - GH_REPO_NAME: openpose
# - DOXYFILE: $TRAVIS_BUILD_DIR/scripts/doc_autogeneration.doxygen # - DOXYFILE: $CI_BUILD_DIR/scripts/doc_autogeneration.doxygen
# # Set this in Environment Variables on travis-ci.org # # Set this in Environment Variables on travis-ci.org
# # - GH_REPO_REF: github.com/<user_name>/openpose.git # # - GH_REPO_REF: github.com/<user_name>/openpose.git
# matrix: # matrix:
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
# sudo: required # sudo: required
# # Generate and deploy documentation # # Generate and deploy documentation
# after_success: # after_success:
# - cd $TRAVIS_BUILD_DIR # - cd $CI_BUILD_DIR
# - chmod +x scripts/generate_gh_pages.sh # - chmod +x scripts/generate_gh_pages.sh
# - ./scripts/generate_gh_pages.sh # - ./scripts/generate_gh_pages.sh
# # Ubuntu 16.04 - Python - CMake - CPU # # Ubuntu 16.04 - Python - CMake - CPU
...@@ -148,9 +148,9 @@ ...@@ -148,9 +148,9 @@
# # Install Caffe and OP dependencies # # Install Caffe and OP dependencies
# install: # install:
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo bash scripts/CI/install_deps_ubuntu.sh ; fi # - if [[ "$CI_OS_NAME" == "linux" ]]; then sudo bash scripts/CI/install_deps_ubuntu.sh ; fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash scripts/CI/install_deps_osx.sh ; fi # - if [[ "$CI_OS_NAME" == "osx" ]]; then bash scripts/CI/install_deps_osx.sh ; fi
# - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then exit 99 ; fi # - if [[ "$CI_OS_NAME" == "windows" ]]; then exit 99 ; fi
# # Running CMake # # Running CMake
# before_script: # before_script:
......
...@@ -23,14 +23,14 @@ jobs: ...@@ -23,14 +23,14 @@ jobs:
env: env:
NAME: U20-default-cmake-cuda NAME: U20-default-cmake-cuda
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 18.04 - Default - CMake - CUDA # Ubuntu 18.04 - Default - CMake - CUDA
- os: ubuntu-18.04 - os: ubuntu-18.04
os_name: linux os_name: linux
env: env:
NAME: U18-default-cmake-cuda NAME: U18-default-cmake-cuda
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 20.04 - Python - CMake - CUDA # Ubuntu 20.04 - Python - CMake - CUDA
- os: ubuntu-20.04 - os: ubuntu-20.04
os_name: linux os_name: linux
...@@ -38,9 +38,9 @@ jobs: ...@@ -38,9 +38,9 @@ jobs:
NAME: U20-python-cmake-cuda NAME: U20-python-cmake-cuda
WITH_CUDNN: false WITH_CUDNN: false
WITH_PYTHON: true WITH_PYTHON: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
TRAVIS_BUILD_NUMBER: ${{ github.run_number }} CI_BUILD_NUMBER: ${{ github.run_number }}
TRAVIS_COMMIT: ${{ github.sha }} CI_COMMIT: ${{ github.sha }}
PYTHON3_VERSION: python3.8 PYTHON3_VERSION: python3.8
DOCS: true DOCS: true
# Ubuntu 18.04 - Python - CMake - CUDA # Ubuntu 18.04 - Python - CMake - CUDA
...@@ -50,9 +50,9 @@ jobs: ...@@ -50,9 +50,9 @@ jobs:
NAME: U18-python-cmake-cuda NAME: U18-python-cmake-cuda
WITH_CUDNN: false WITH_CUDNN: false
WITH_PYTHON: true WITH_PYTHON: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
TRAVIS_BUILD_NUMBER: ${{ github.run_number }} CI_BUILD_NUMBER: ${{ github.run_number }}
TRAVIS_COMMIT: ${{ github.sha }} CI_COMMIT: ${{ github.sha }}
DOCS: true DOCS: true
# Ubuntu 20.04 - Python - CMake - CPU # Ubuntu 20.04 - Python - CMake - CPU
- os: ubuntu-20.04 - os: ubuntu-20.04
...@@ -62,7 +62,7 @@ jobs: ...@@ -62,7 +62,7 @@ jobs:
WITH_PYTHON: true WITH_PYTHON: true
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
PYTHON3_VERSION: python3.8 PYTHON3_VERSION: python3.8
# Ubuntu 18.04 - Python - CMake - CPU # Ubuntu 18.04 - Python - CMake - CPU
- os: ubuntu-18.04 - os: ubuntu-18.04
...@@ -72,7 +72,7 @@ jobs: ...@@ -72,7 +72,7 @@ jobs:
WITH_PYTHON: true WITH_PYTHON: true
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 16.04 - Python - CMake - CPU # Ubuntu 16.04 - Python - CMake - CPU
- os: ubuntu-16.04 - os: ubuntu-16.04
os_name: linux os_name: linux
...@@ -81,7 +81,7 @@ jobs: ...@@ -81,7 +81,7 @@ jobs:
WITH_PYTHON: true WITH_PYTHON: true
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# TO-DO (not passing) # TO-DO (not passing)
# # Ubuntu 20.04 - Python - CMake - OpenCL # # Ubuntu 20.04 - Python - CMake - OpenCL
# - os: ubuntu-20.04 # - os: ubuntu-20.04
...@@ -92,7 +92,7 @@ jobs: ...@@ -92,7 +92,7 @@ jobs:
# WITH_CUDA: false # WITH_CUDA: false
# WITH_CUDNN: false # WITH_CUDNN: false
# WITH_OPEN_CL: true # WITH_OPEN_CL: true
# TRAVIS_OS_NAME: linux # CI_OS_NAME: linux
# PYTHON3_VERSION: python3.8 # PYTHON3_VERSION: python3.8
# Ubuntu 18.04 - Python - CMake - OpenCL # Ubuntu 18.04 - Python - CMake - OpenCL
- os: ubuntu-18.04 - os: ubuntu-18.04
...@@ -103,7 +103,7 @@ jobs: ...@@ -103,7 +103,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_OPEN_CL: true WITH_OPEN_CL: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 16.04 - Python - CMake - OpenCL # Ubuntu 16.04 - Python - CMake - OpenCL
- os: ubuntu-16.04 - os: ubuntu-16.04
os_name: linux os_name: linux
...@@ -113,7 +113,7 @@ jobs: ...@@ -113,7 +113,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_OPEN_CL: true WITH_OPEN_CL: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 20.04 - Python - CMake - CPU - Debug # Ubuntu 20.04 - Python - CMake - CPU - Debug
- os: ubuntu-20.04 - os: ubuntu-20.04
os_name: linux os_name: linux
...@@ -123,7 +123,7 @@ jobs: ...@@ -123,7 +123,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_DEBUG: true WITH_DEBUG: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
PYTHON3_VERSION: python3.8 PYTHON3_VERSION: python3.8
# Ubuntu 18.04 - Python - CMake - CPU - Debug # Ubuntu 18.04 - Python - CMake - CPU - Debug
- os: ubuntu-18.04 - os: ubuntu-18.04
...@@ -134,7 +134,7 @@ jobs: ...@@ -134,7 +134,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_DEBUG: true WITH_DEBUG: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 16.04 - Python - CMake - CPU - Debug # Ubuntu 16.04 - Python - CMake - CPU - Debug
- os: ubuntu-16.04 - os: ubuntu-16.04
os_name: linux os_name: linux
...@@ -144,7 +144,7 @@ jobs: ...@@ -144,7 +144,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_DEBUG: true WITH_DEBUG: true
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Ubuntu 20.04 - Python - CMake - CPU - Unity # Ubuntu 20.04 - Python - CMake - CPU - Unity
- os: ubuntu-20.04 - os: ubuntu-20.04
os_name: linux os_name: linux
...@@ -154,7 +154,7 @@ jobs: ...@@ -154,7 +154,7 @@ jobs:
WITH_UNITY: true WITH_UNITY: true
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
PYTHON3_VERSION: python3.8 PYTHON3_VERSION: python3.8
# Ubuntu 20.04 - Default - CMake - CPU # Ubuntu 20.04 - Default - CMake - CPU
- os: ubuntu-20.04 - os: ubuntu-20.04
...@@ -163,7 +163,7 @@ jobs: ...@@ -163,7 +163,7 @@ jobs:
NAME: U20-default-cmake-cpu NAME: U20-default-cmake-cpu
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: linux CI_OS_NAME: linux
# Mac OSX # Mac OSX
# Mac OSX - Python - CMake - CPU # Mac OSX - Python - CMake - CPU
...@@ -174,7 +174,7 @@ jobs: ...@@ -174,7 +174,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_PYTHON: true WITH_PYTHON: true
TRAVIS_OS_NAME: osx CI_OS_NAME: osx
# Mac OSX - Python - CMake - OpenCL # Mac OSX - Python - CMake - OpenCL
- os: macos-10.15 - os: macos-10.15
os_name: osx os_name: osx
...@@ -183,7 +183,7 @@ jobs: ...@@ -183,7 +183,7 @@ jobs:
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
WITH_OPEN_CL: true WITH_OPEN_CL: true
TRAVIS_OS_NAME: osx CI_OS_NAME: osx
# Mac OSX - Python - CMake - CPU - Debug # Mac OSX - Python - CMake - CPU - Debug
- os: macos-10.15 - os: macos-10.15
os_name: osx os_name: osx
...@@ -193,7 +193,7 @@ jobs: ...@@ -193,7 +193,7 @@ jobs:
WITH_CUDNN: false WITH_CUDNN: false
WITH_PYTHON: true WITH_PYTHON: true
WITH_DEBUG: true WITH_DEBUG: true
TRAVIS_OS_NAME: osx CI_OS_NAME: osx
# Mac OSX - Python - CMake - CPU - Unity # Mac OSX - Python - CMake - CPU - Unity
- os: macos-10.15 - os: macos-10.15
os_name: osx os_name: osx
...@@ -203,7 +203,7 @@ jobs: ...@@ -203,7 +203,7 @@ jobs:
WITH_CUDNN: false WITH_CUDNN: false
WITH_PYTHON: true WITH_PYTHON: true
WITH_UNITY: true WITH_UNITY: true
TRAVIS_OS_NAME: osx CI_OS_NAME: osx
# Mac OSX - Default - CMake - CPU # Mac OSX - Default - CMake - CPU
- os: macos-10.15 - os: macos-10.15
os_name: osx os_name: osx
...@@ -211,7 +211,7 @@ jobs: ...@@ -211,7 +211,7 @@ jobs:
NAME: OSX-default-cmake-cpu NAME: OSX-default-cmake-cpu
WITH_CUDA: false WITH_CUDA: false
WITH_CUDNN: false WITH_CUDNN: false
TRAVIS_OS_NAME: osx CI_OS_NAME: osx
# TO-DO (not passing) # TO-DO (not passing)
# Note: CUDA jobs fail in U16 because of an issue with GCC 5.5 (https://github.com/NVIDIA/apex/issues/529). GH Actions doesn't support # Note: CUDA jobs fail in U16 because of an issue with GCC 5.5 (https://github.com/NVIDIA/apex/issues/529). GH Actions doesn't support
...@@ -222,7 +222,7 @@ jobs: ...@@ -222,7 +222,7 @@ jobs:
# os_name: linux # os_name: linux
# env: # env:
# NAME: U16-default-cmake-cuda8 # NAME: U16-default-cmake-cuda8
# TRAVIS_OS_NAME: linux # CI_OS_NAME: linux
# # Deprecated (not working for the above issue between CUDA and the Ubuntu16 from GitHub Actions) # # Deprecated (not working for the above issue between CUDA and the Ubuntu16 from GitHub Actions)
# # Ubuntu 16.04 - Default - Make - CUDA # # Ubuntu 16.04 - Default - Make - CUDA
...@@ -232,7 +232,7 @@ jobs: ...@@ -232,7 +232,7 @@ jobs:
# NAME: U16-default-make-cuda # NAME: U16-default-make-cuda
# WITH_CUDNN: false # WITH_CUDNN: false
# WITH_CMAKE: false # WITH_CMAKE: false
# TRAVIS_OS_NAME: linux # CI_OS_NAME: linux
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
......
...@@ -19,3 +19,4 @@ We would also like to thank the following people who have highly contributed to ...@@ -19,3 +19,4 @@ We would also like to thank the following people who have highly contributed to
4. [Luis Fernando Fraga](https://github.com/fragalfernando): Implementation of Lukas-Kanade algorith and person ID extractor. 4. [Luis Fernando Fraga](https://github.com/fragalfernando): Implementation of Lukas-Kanade algorith and person ID extractor.
5. [Akash Patwal](https://www.linkedin.com/in/akash-patwal-63a12012a): Speedup of the CUDA image resize and visual skeleton rendering, as well as extension that allows OpenPose to speedup linearly to more than 4 GPUs. 5. [Akash Patwal](https://www.linkedin.com/in/akash-patwal-63a12012a): Speedup of the CUDA image resize and visual skeleton rendering, as well as extension that allows OpenPose to speedup linearly to more than 4 GPUs.
6. [Helen Medina](https://github.com/helen-medina): Initial Windows version. 6. [Helen Medina](https://github.com/helen-medina): Initial Windows version.
7. [Matthijs van der Burgh](https://github.com/MatthijsBurgh): Initial GitHub Actions CI version for Ubuntu and Mac, and ported all the deprecated Travis CI tests into the new CI system.
文件模式从 100644 更改为 100755
...@@ -13,7 +13,7 @@ fi ...@@ -13,7 +13,7 @@ fi
echo "WITH_PYTHON = ${WITH_PYTHON}." echo "WITH_PYTHON = ${WITH_PYTHON}."
if [[ $WITH_PYTHON == true ]] ; then if [[ $WITH_PYTHON == true ]] ; then
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then if [[ "$CI_OS_NAME" == "linux" ]] ; then
ARGS="$ARGS -DBUILD_PYTHON=On" ARGS="$ARGS -DBUILD_PYTHON=On"
if [[ $PYTHON3_VERSION ]] ; then if [[ $PYTHON3_VERSION ]] ; then
ARGS="$ARGS -DPYTHON_EXECUTABLE=/usr/bin/${PYTHON3_VERSION} -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/lib${PYTHON3_VERSION}m.so" ARGS="$ARGS -DPYTHON_EXECUTABLE=/usr/bin/${PYTHON3_VERSION} -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/lib${PYTHON3_VERSION}m.so"
...@@ -22,7 +22,7 @@ if [[ $WITH_PYTHON == true ]] ; then ...@@ -22,7 +22,7 @@ if [[ $WITH_PYTHON == true ]] ; then
ARGS="$ARGS -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7m.so" ARGS="$ARGS -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython2.7m.so"
fi fi
fi fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then if [[ "$CI_OS_NAME" == "osx" ]] ; then
ARGS="$ARGS -DBUILD_PYTHON=On -DPYTHON_EXECUTABLE=/usr/local/bin/python2.7 -DPYTHON_LIBRARY=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7m.dylib" ARGS="$ARGS -DBUILD_PYTHON=On -DPYTHON_EXECUTABLE=/usr/local/bin/python2.7 -DPYTHON_LIBRARY=/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7m.dylib"
fi fi
echo "Python arguments = $ARGS" echo "Python arguments = $ARGS"
...@@ -71,7 +71,7 @@ echo "ARGS = ${ARGS}." ...@@ -71,7 +71,7 @@ echo "ARGS = ${ARGS}."
cmake .. $ARGS cmake .. $ARGS
# Patch for OpenCL and OSX # Patch for OpenCL and OSX
if [[ $WITH_OPEN_CL == true && $TRAVIS_OS_NAME == "osx" ]] ; then if [[ $WITH_OPEN_CL == true && $CI_OS_NAME == "osx" ]] ; then
cd ../3rdparty/caffe; git apply ../../scripts/osx/mac_opencl_patch.txt; cd ../3rdparty/caffe; git apply ../../scripts/osx/mac_opencl_patch.txt;
cd ../../build; cd ../../build;
fi fi
......
文件模式从 100644 更改为 100755
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Set default environment variables # Set default environment variables
set -e set -e
TRAVIS_OS_NAME=${TRAVIS_OS_NAME} CI_OS_NAME=${CI_OS_NAME}
WITH_CMAKE=${WITH_CMAKE:-true} WITH_CMAKE=${WITH_CMAKE:-true}
WITH_PYTHON=${WITH_PYTHON:-false} WITH_PYTHON=${WITH_PYTHON:-false}
WITH_CUDA=${WITH_CUDA:-true} WITH_CUDA=${WITH_CUDA:-true}
...@@ -18,7 +18,7 @@ then ...@@ -18,7 +18,7 @@ then
WITH_CUDNN=false WITH_CUDNN=false
fi fi
# Examples should be run (Travis not compatible with GPU code) # Examples should be run (CI environment not compatible with GPU code)
# if [[ $WITH_CMAKE == true ]] && [[ $WITH_PYTHON == true ]] && [[ $WITH_CUDA == false ]] && [[ $WITH_OPEN_CL == false ]] && [[ $WITH_MKL == false ]]; then # if [[ $WITH_CMAKE == true ]] && [[ $WITH_PYTHON == true ]] && [[ $WITH_CUDA == false ]] && [[ $WITH_OPEN_CL == false ]] && [[ $WITH_MKL == false ]]; then
if [[ $WITH_CUDA == false ]] && [[ $WITH_OPEN_CL == false ]] && [[ $WITH_UNITY == false ]]; then if [[ $WITH_CUDA == false ]] && [[ $WITH_OPEN_CL == false ]] && [[ $WITH_UNITY == false ]]; then
RUN_EXAMPLES=true RUN_EXAMPLES=true
......
文件模式从 100644 更改为 100755
#!/bin/bash #!/bin/bash
# Install dependencies for Ubuntu # Install dependencies for Ubuntu
echo "Running on ${TRAVIS_OS_NAME} OS." echo "Running on ${CI_OS_NAME} OS."
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
source $BASEDIR/defaults.sh source $BASEDIR/defaults.sh
......
...@@ -7,9 +7,9 @@ source $BASEDIR/defaults.sh ...@@ -7,9 +7,9 @@ source $BASEDIR/defaults.sh
if [[ $WITH_CMAKE == true ]] ; then if [[ $WITH_CMAKE == true ]] ; then
cd build cd build
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make -j`nproc` ; fi if [[ "$CI_OS_NAME" == "linux" ]]; then make -j`nproc` ; fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make -j`sysctl -n hw.logicalcpu` ; fi if [[ "$CI_OS_NAME" == "osx" ]]; then make -j`sysctl -n hw.logicalcpu` ; fi
else else
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make all -j`nproc` ; fi if [[ "$CI_OS_NAME" == "linux" ]]; then make all -j`nproc` ; fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make all -j`sysctl -n hw.logicalcpu` ; fi if [[ "$CI_OS_NAME" == "osx" ]]; then make all -j`sysctl -n hw.logicalcpu` ; fi
fi fi
...@@ -107,7 +107,7 @@ if [[ $RUN_EXAMPLES == true ]] ; then ...@@ -107,7 +107,7 @@ if [[ $RUN_EXAMPLES == true ]] ; then
echo "Demos and tutorials successfully finished!" echo "Demos and tutorials successfully finished!"
# Disable examples for all other Travis Build configurations # Disable examples for all other CI Build configurations
else else
echo "Skipping tests for non CPU-only versions." echo "Skipping tests for non CPU-only versions."
exit 0 exit 0
......
...@@ -8,13 +8,13 @@ __AUTHOR__="openpose" ...@@ -8,13 +8,13 @@ __AUTHOR__="openpose"
# - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz # - Packages doxygen doxygen-doc doxygen-latex doxygen-gui graphviz
# must be installed. # must be installed.
# - Doxygen configuration file must have the destination directory empty and # - Doxygen configuration file must have the destination directory empty and
# source code directory with a $(TRAVIS_BUILD_DIR) prefix. # source code directory with a $(CI_BUILD_DIR) prefix.
# - An gh-pages branch should already exist. See below for mor info on hoe to # - An gh-pages branch should already exist. See below for mor info on hoe to
# create a gh-pages branch. # create a gh-pages branch.
# #
# Required global variables: # Required global variables:
# - TRAVIS_BUILD_NUMBER : The number of the current build. # - CI_BUILD_NUMBER : The number of the current build.
# - TRAVIS_COMMIT : The commit that the current build is testing. # - CI_COMMIT : The commit that the current build is testing.
# - DOXYFILE : The Doxygen configuration file. # - DOXYFILE : The Doxygen configuration file.
# - GH_REPO_NAME : The name of the repository. # - GH_REPO_NAME : The name of the repository.
# - GH_REPO_REF : The GitHub reference to the repository. # - GH_REPO_REF : The GitHub reference to the repository.
...@@ -71,8 +71,8 @@ echo "" > .nojekyll ...@@ -71,8 +71,8 @@ echo "" > .nojekyll
##### Generate the Doxygen code documentation and log the output. ##### ##### Generate the Doxygen code documentation and log the output. #####
echo 'Generating Doxygen code documentation...' echo 'Generating Doxygen code documentation...'
# Redirect both stderr and stdout to the log file AND the console. # Redirect both stderr and stdout to the log file AND the console.
echo "INPUT = ${TRAVIS_BUILD_DIR}/README.md ${TRAVIS_BUILD_DIR}/include/openpose/" >> $DOXYFILE echo "INPUT = ${CI_BUILD_DIR}/README.md ${CI_BUILD_DIR}/include/openpose/" >> $DOXYFILE
echo "USE_MDFILE_AS_MAINPAGE = ${TRAVIS_BUILD_DIR}/README.md" >> $DOXYFILE echo "USE_MDFILE_AS_MAINPAGE = ${CI_BUILD_DIR}/README.md" >> $DOXYFILE
echo "OUTPUT_DIRECTORY = " >> $DOXYFILE echo "OUTPUT_DIRECTORY = " >> $DOXYFILE
doxygen $DOXYFILE 2>&1 | tee doxygen.log doxygen $DOXYFILE 2>&1 | tee doxygen.log
...@@ -92,7 +92,7 @@ if [ -d "html" ] && [ -f "html/index.html" ]; then ...@@ -92,7 +92,7 @@ if [ -d "html" ] && [ -f "html/index.html" ]; then
# Commit the added files with a title and description containing the Travis CI # Commit the added files with a title and description containing the Travis CI
# build number and the GitHub commit reference that issued this build. # build number and the GitHub commit reference that issued this build.
git commit -m "Deploy code docs to GitHub Pages Travis build: ${TRAVIS_BUILD_NUMBER}" -m "Commit: ${TRAVIS_COMMIT}" git commit -m "Deploy code docs to GitHub Pages Travis build: ${CI_BUILD_NUMBER}" -m "Commit: ${CI_COMMIT}"
# Force push to the remote gh-pages branch. # Force push to the remote gh-pages branch.
# The ouput is redirected to /dev/null to hide any sensitive credential data # The ouput is redirected to /dev/null to hide any sensitive credential data
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册