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

Commit

Permalink
py2/3 and chainer stable/latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakuyume committed Mar 6, 2019
1 parent 58f21f5 commit fa73c7f
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 4 deletions.
74 changes: 70 additions & 4 deletions .chainerci/config.pbtxt
Original file line number Diff line number Diff line change
@@ -1,13 +1,79 @@
configs {
key: "chainercv"
key: "chainercv.py2.chainer-stable"
value {
requirement {
cpu: 4
memory: 16
gpu: 2
}
command:
"docker run --runtime=nvidia --rm --volume $(realpath .):/mnt hakuyume/chainercv:chainer5.2.0-devel "
"sh -ec \"pip3 install --user -e /mnt; mpiexec -n 2 --allow-run-as-root python3 -m pytest -m 'not slow' /mnt/tests\""
command: "sh .chainerci/tests.sh"
environment_variables {
key: "PYTHON"
value: "2"
}
environment_variables {
key: "CHAINER"
value: "5.2.0"
}
}
}

configs {
key: "chainercv.py3.chainer-stable"
value {
requirement {
cpu: 4
memory: 16
gpu: 2
}
command: "sh .chainerci/tests.sh"
environment_variables {
key: "PYTHON"
value: "3"
}
environment_variables {
key: "CHAINER"
value: "5.2.0"
}
}
}

configs {
key: "chainercv.py2.chainer-latest"
value {
requirement {
cpu: 4
memory: 16
gpu: 2
}
command: "sh .chainerci/tests.sh"
environment_variables {
key: "PYTHON"
value: "2"
}
environment_variables {
key: "CHAINER"
value: "6.0.0b2"
}
}
}

configs {
key: "chainercv.py3.chainer-latest"
value {
requirement {
cpu: 4
memory: 16
gpu: 2
}
command: "sh .chainerci/tests.sh"
environment_variables {
key: "PYTHON"
value: "3"
}
environment_variables {
key: "CHAINER"
value: "6.0.0b2"
}
}
}
6 changes: 6 additions & 0 deletions .chainerci/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /usr/bin/env sh
set -eu

docker run --runtime=nvidia --rm --volume $(realpath .):/mnt \
hakuyume/chainercv:chainer${CHAINER}-devel \
sh -ec "pip${PYTHON} install --user -e /mnt; mpiexec -n 2 --allow-run-as-root python${PYTHON} -m pytest -m 'not slow' /mnt/tests"

0 comments on commit fa73c7f

Please sign in to comment.