Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test to check which commit is not good #1277

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ case $TEST_PACKAGE in
mkdir -p ~/build_openhrp3
cd ~/build_openhrp3
git clone http://github.com/fkanehiro/openhrp3
(cd openhrp3; git checkout ${COMMIT_ID})
sed -i 's/COLLADA_DOM_FOUND/0/' openhrp3/sample/CMakeLists.txt
cd openhrp3 && cmake . ${COMPILE_OPTION} && make && sudo make install
fi
Expand Down
108 changes: 15 additions & 93 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,100 +11,22 @@ env:
global:
- secure: "ESSo9YL0lUB0nnlFIL1vV7zpOyZjgTign4IZR735laiylPjOLKW4BkP9JxT5alA9ip72qbpDKI192Ed3sSkWjjQxhM+/HIjtyOy5/F6U5wfvxWudorJeF4zCy4OBD7Bp9JWqucAkRmd5Qe3Djaih69rAK31IFeNhQ2Ebz6RWVGk="
matrix:
# test for normal hrpsys users, this will not depends on any ROS-related tools
- ROS_DISTRO=hydro TEST_PACKAGE=hrpsys
# - ROS_DISTRO=hydro TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
# - ROS_DISTRO=hydro TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=hydro TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=hydro TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# USE_SRC_OPENHRP3=false tests
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
# - ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=hydro TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
- ROS_DISTRO=indigo TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=indigo TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# USE_SRC_OPENHRP3=false tests
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=indigo TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys
# - ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_PACKAGE=hrpsys COMPILE_OPTION='-DROBOT_IOB_VERSION=0'
# - ROS_DISTRO=kinetic TEST_TYPE=python TEST_PACKAGE=hrpsys
- ROS_DISTRO=kinetic TEST_TYPE=iob TEST_PACKAGE=hrpsys
- ROS_DISTRO=kinetic TEST_TYPE=stable_rtc TEST_PACKAGE=hrpsys
# compile source code with ros-related tools, they are compiled with catkin and test with rostest
# Exec USE_SRC_OPENHRP3=true tests in faster orders to make debug of these tests easy.
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge USE_SRC_OPENHRP3=true
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base USE_SRC_OPENHRP3=true
# # USE_SRC_OPENHRP3=false tests
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-base
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-tools
# - ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-tools
- ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
matrix:
allow_failures:
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hrpsys-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hrpsys-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_downstream TEST_PACKAGE=hironx-ros-bridge
- env: ROS_DISTRO=kinetic TEST_TYPE=work_with_315_1_10 TEST_PACKAGE=hironx-ros-bridge
- COMMIT_ID=53d561a288866a9ebf23c2bd07631fe4c5b91594
- COMMIT_ID=f0fdab28ad08a09da4131d627368f4859c4235c9
- COMMIT_ID=47c267976b62917ad2907fe6983be2eebe50ab89
- COMMIT_ID=c6295ed505ec6b39b3d6cf0982732fc69dea1a43
- COMMIT_ID=593293d07b7c8b89962121f66781c0ec5858c439
- COMMIT_ID=2dcc568824db344cdde7878d69825d1e5fd3a123
- COMMIT_ID=21d1f2ab0a37f832e24eba56a05763eaa7833b0c
- COMMIT_ID=20b1e62c7aa68e8cd4221e839e87790865ffc678
- COMMIT_ID=188d28509a41c44b8c5c676c30d56c13a9c8a6ba
script:
- case $ROS_DISTRO in "hydro") export DISTRO=precise;; "indigo") export DISTRO=trusty;; "kinetic") export DISTRO=xenial;; esac;
- export ROS_DISTRO=indigo
- export TEST_TYPE=work_with_downstream
- export TEST_PACKAGE=hironx-ros-bridge
- export USE_SRC_OPENHRP3=true
- export DISTRO=trusty
- export DOCKER_IMAGE=ubuntu:$DISTRO
- export CI_SOURCE_PATH=$(pwd)
- docker images
- docker run -v $HOME:$HOME -e CI_SOURCE_PATH -e HOME -e DISTRO -e ROS_DISTRO -e ROS_LOG_DIR -e TEST_TYPE -e TEST_PACKAGE -e USE_SRC_OPENHRP3 -e COMILE_OPTION $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .travis.sh'
after_success:
- set +x
- export GIT_COMMITTER_NAME=$GIT_NAME
- export GIT_COMMITTER_EMAIL=$GIT_EMAIL
- export GIT_AUTHOR_NAME=$GIT_NAME
- export GIT_AUTHOR_EMAIL=$GIT_EMAIL
- echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST TRAVIS_BRANCH=$TRAVIS_BRANCH TEST_PACKAGE=$TEST_PACKAGE TEST_TYPE=$TEST_TYPE"
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cd ~/; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git clone --branch gh-pages https://github.com/$TRAVIS_REPO_SLUG doc; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cd doc; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then cp -r ~/build/doc/html/* ./; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git status; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git checkout --orphan gh-pages-new; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git add -f .; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git commit -m "Build documents from $TRAVIS_COMMIT" . ; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git branch -D gh-pages; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git branch -m gh-pages; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git remote -v; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" -a "$TEST_PACKAGE" == "hrpsys" -a "$TEST_TYPE" == "" ]; then git push -f --quiet https://[email protected]/$TRAVIS_REPO_SLUG.git gh-pages; fi





- docker run -v $HOME:$HOME -e CI_SOURCE_PATH -e HOME -e DISTRO -e ROS_DISTRO -e ROS_LOG_DIR -e TEST_TYPE -e TEST_PACKAGE -e USE_SRC_OPENHRP3 -e COMMIT_ID -e COMILE_OPTION $DOCKER_IMAGE bash -c 'cd $CI_SOURCE_PATH; source .travis.sh'