Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakuyume committed Dec 17, 2019
1 parent fa5981a commit 1805751
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .pfnci/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eux

STABLE=6.4.0
LATEST=7.0.0b4
LATEST=7.0.0

systemctl stop docker.service
mount -t tmpfs tmpfs /var/lib/docker/ -o size=100%
Expand All @@ -12,27 +12,28 @@ gcloud auth configure-docker
TEMP=$(mktemp -d)
mount -t tmpfs tmpfs ${TEMP}/ -o size=100%

get_local_version() {
git merge-base --is-ancestor origin/v6 HEAD && LOCAL_VERSION=stable || true
git merge-base --is-ancestor master HEAD && LOCAL_VERSION=master || true
}

REPOSITORY=${REPOSITORY:-chainercv}
case ${REPOSITORY} in
chainercv)
CUPY=${CHAINER}
cp -a . ${TEMP}/chainercv
;;
chainer)
get_local_version
CHAINER=local
CUPY=${LOCAL_VERSION}
if git merge-base --is-ancestor origin/v6 HEAD; then
CUPY=stable
elif git merge-base --is-ancestor origin/master HEAD; then
CUPY=latest
fi
cp -a . ${TEMP}/chainer
mv ${TEMP}/chainer/chainercv/ ${TEMP}/
;;
cupy)
get_local_version
CHAINER=${LOCAL_VERSION}
if git merge-base --is-ancestor origin/v6 HEAD; then
CHAINER=stable
elif git merge-base --is-ancestor origin/v7 HEAD; then
CHAINER=latest
fi
CUPY=local
cp -a . ${TEMP}/cupy
mv ${TEMP}/cupy/chainercv/ ${TEMP}/
Expand Down

0 comments on commit 1805751

Please sign in to comment.