Skip to content

Commit

Permalink
codeship pro to basic (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed May 6, 2020
1 parent 3c70aaa commit 28f9ae1
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
36 changes: 36 additions & 0 deletions .ci/codeship/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash
# Codeship Test Console Setting
# ==============================================================================
# doxygen --version
# python --version
# export GH_PAGES_BRANCH=0
# if echo "$CI_BRANCH" | grep -q "gh-pages"; then export GH_PAGES_BRANCH=1; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then make -C test/cpplint; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then make -C test check_incg; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then ! find projects -type f -print0 | xargs -0 grep '[d-zD-Z]:\\.*'; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then make -C test/docs version-test; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then make -C test/docs doxygen-test; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then sh .ci/check-crlf.sh; fi
# if [ $GH_PAGES_BRANCH == 0 ]; then make editorconfig-self-lint; fi
# if git grep --cached -I -l -P '\r'; then exit 1; fi
# ==============================================================================

doxygen --version
python --version
export GH_PAGES_BRANCH=0
if echo "$CI_BRANCH" | grep -q "gh-pages"; then
export GH_PAGES_BRANCH=1;
fi
if [ "$GH_PAGES_BRANCH" = 0 ]; then
echo
make -C test/cpplint
make -C test check_incg
! find projects -type f -print0 | xargs -0 grep '[d-zD-Z]:\\'
make -C test/docs version-test
make -C test/docs doxygen-test
sh .ci/check-crlf.sh
make editorconfig-self-lint
fi
if git grep --cached -I -l -P '\r'; then
exit 1
fi
1 change: 1 addition & 0 deletions codeship-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ iutest:
image: codeship/iutest
dockerfile: ./tools/docker/Dockerfile
volumes:
- ./.ssh:/root/.ssh
- ./:/work
cached: true
2 changes: 2 additions & 0 deletions codeship-steps.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# iutest using codeship basic
# this file is codeship settings sample
- type: parallel
exclude: gh-pages
steps:
Expand Down
9 changes: 0 additions & 9 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ RUN . /etc/os-release && \
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 1000 \
--slave /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION}

# .ssh/config

RUN mkdir ~/.ssh ; \
echo "host svn.osdn.jp" >> ~/.ssh/config && \
echo " StrictHostKeyChecking no" >> ~/.ssh/config && \
echo "host github.com" >> ~/.ssh/config && \
echo " StrictHostKeyChecking no" >> ~/.ssh/config && \
chmod 600 ~/.ssh/config

RUN mkdir /iutest
VOLUME [ "/iutest" ]
WORKDIR /iutest

0 comments on commit 28f9ae1

Please sign in to comment.