Skip to content

Commit

Permalink
fix missing .git directory
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed May 23, 2022
1 parent e313986 commit c42ebf0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,22 @@ jobs:
- TEST : debian-unstable
DOCKER_IMAGE : debian:unstable
steps:
- name: Setup OS
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
- name: Setup Git
run: |
sudo apt-get install -y git
- name: Chcekout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
# python3_check
- name: python3_check
if: matrix.CHECK_PYTHON3_COMPILE == true
run: python3 -m compileall .
run: pwd; ls -al; git diff; python3 -m compileall .
# catkin_lint
- name: catkin_lint setup
if: matrix.TEST == 'catkin_lint'
Expand All @@ -62,4 +72,4 @@ jobs:
- name: script
if: matrix.DOCKER_IMAGE
run: |
docker run --rm -i -v $PWD:$PWD -e "CI_SOURCE_PATH=$PWD" -e "HOME=$HOME" -e "ROS_DISTRO=${{ matrix.ROS_DISTRO }}" -e "OPENCV_VERSION=${{ matrix.OPENCV_VERSION }}" -e "TEST=${{ matrix.TEST }}" ${{ matrix.DOCKER_IMAGE }} sh -c "cd $PWD; /bin/bash .travis.sh"
docker run --rm -i -v $PWD:$PWD -e "CI_SOURCE_PATH=$PWD" -e "HOME=$HOME" -e "ROS_DISTRO=${{ matrix.ROS_DISTRO }}" -e "OPENCV_VERSION=${{ matrix.OPENCV_VERSION }}" -e "TEST=${{ matrix.TEST }}" ${{ matrix.DOCKER_IMAGE }} sh -c "cd $PWD; ls -al; /bin/bash .travis.sh"
6 changes: 4 additions & 2 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ elif [ "$TEST" == "clang-tidy" ]; then
run-clang-tidy -fix -p $(dirname $file)
done
travis_time_end
git -C $CI_SOURCE_PATH --no-pager diff
git -C $CI_SOURCE_PATH diff-index --quiet HEAD -- .
ls -al $CI_SOURCE_PATH
ls -al $CI_SOURCE_PATH/.git/
( cd $CI_SOURCE_PATH; git --no-pager diff )
( cd $CI_SOURCE_PATH; git diff-index --quiet HEAD -- . )

elif [ "$TEST" == "debian-unstable" ]; then

Expand Down

0 comments on commit c42ebf0

Please sign in to comment.