This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
991 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
configs { | ||
key: "chainercv.py2.stable" | ||
value { | ||
requirement { | ||
cpu: 32 | ||
memory: 64 | ||
} | ||
time_limit: { | ||
seconds: 900 | ||
} | ||
command: "sh .pfnci/tests.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "2" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "5.2.0" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py3.stable" | ||
value { | ||
requirement { | ||
cpu: 32 | ||
memory: 64 | ||
} | ||
time_limit: { | ||
seconds: 900 | ||
} | ||
command: "sh .pfnci/tests.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "3" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "5.2.0" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py2.latest" | ||
value { | ||
requirement { | ||
cpu: 32 | ||
memory: 64 | ||
} | ||
time_limit: { | ||
seconds: 900 | ||
} | ||
command: "sh .pfnci/tests.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "2" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "6.0.0b2" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py3.latest" | ||
value { | ||
requirement { | ||
cpu: 32 | ||
memory: 64 | ||
} | ||
time_limit: { | ||
seconds: 900 | ||
} | ||
command: "sh .pfnci/tests.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "3" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "6.0.0b2" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py2.stable.gpu" | ||
value { | ||
requirement { | ||
cpu: 4 | ||
memory: 16 | ||
gpu: 1 | ||
} | ||
command: "sh .pfnci/tests_gpu.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "2" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "5.2.0" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py3.stable.gpu" | ||
value { | ||
requirement { | ||
cpu: 4 | ||
memory: 16 | ||
gpu: 1 | ||
} | ||
command: "sh .pfnci/tests_gpu.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "3" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "5.2.0" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py2.latest.gpu" | ||
value { | ||
requirement { | ||
cpu: 4 | ||
memory: 16 | ||
gpu: 1 | ||
} | ||
command: "sh .pfnci/tests_gpu.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "2" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "6.0.0b2" | ||
} | ||
} | ||
} | ||
|
||
configs { | ||
key: "chainercv.py3.latest.gpu" | ||
value { | ||
requirement { | ||
cpu: 4 | ||
memory: 16 | ||
gpu: 1 | ||
} | ||
command: "sh .pfnci/tests_gpu.sh" | ||
environment_variables { | ||
key: "PYTHON" | ||
value: "3" | ||
} | ||
environment_variables { | ||
key: "CHAINER" | ||
value: "6.0.0b2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /usr/bin/env sh | ||
set -eux | ||
|
||
TEMP=$(mktemp -d) | ||
mount -t tmpfs tmpfs ${TEMP}/ -o size=100% | ||
apt-get install -y --no-install-recommends unzip | ||
gsutil -q cp gs://chainercv-pfn-public-ci/datasets-tiny.zip ${TEMP}/ | ||
unzip -q ${TEMP}/datasets-tiny.zip -d ${TEMP}/ | ||
rm ${TEMP}/datasets-tiny.zip | ||
|
||
docker run --interactive --rm \ | ||
--volume $(pwd):/chainercv/ --workdir /chainercv/ \ | ||
--volume ${TEMP}/.chainer/:/root/.chainer/ \ | ||
--env MPLBACKEND=agg \ | ||
hakuyume/chainercv:chainer${CHAINER}-devel \ | ||
sh -ex << EOD | ||
pip${PYTHON} install --user pytest-xdist | ||
pip${PYTHON} install --user -e . | ||
python${PYTHON} -m pytest --color=no -n $(nproc) \ | ||
-m 'not pfnci_skip and not gpu and not mpi' tests/ | ||
mpiexec -n 2 --allow-run-as-root \ | ||
python${PYTHON} -m pytest --color=no \ | ||
-m 'not pfnci_skip and not gpu and mpi' tests/ | ||
EOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /usr/bin/env sh | ||
set -eux | ||
|
||
TEMP=$(mktemp -d) | ||
mount -t tmpfs tmpfs ${TEMP}/ -o size=100% | ||
mkdir -p ${TEMP}/.chainer | ||
|
||
docker run --runtime=nvidia --interactive --rm \ | ||
--volume $(pwd):/chainercv/ --workdir /chainercv/ \ | ||
--volume ${TEMP}/.chainer/:/root/.chainer/ \ | ||
--env MPLBACKEND=agg \ | ||
hakuyume/chainercv:chainer${CHAINER}-devel \ | ||
sh -ex << EOD | ||
pip${PYTHON} install --user -e . | ||
python${PYTHON} -m pytest --color=no \ | ||
-m 'not pfnci_skip and gpu and not mpi' tests/ | ||
mpiexec -n 2 --allow-run-as-root \ | ||
python${PYTHON} -m pytest --color=no \ | ||
-m 'not pfnci_skip and gpu and mpi' tests/ | ||
EOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.