forked from blue-oil/blueoil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Makefile and unify test commands in it (blue-oil#194)
* Remove confusing config * Create Makefile to make initializing easier * Wrap all test tasks by Makefile * Fix unreadable connfigs around docker
- Loading branch information
1 parent
c3c2e2d
commit e444a66
Showing
14 changed files
with
96 additions
and
109 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 |
---|---|---|
|
@@ -10,4 +10,8 @@ saved/ | |
*/saved/ | ||
dataset/ | ||
config/ | ||
tmp/ | ||
*.github/ | ||
*tmp/ | ||
*.tox/ | ||
*docs/ | ||
.firebase/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
IMAGE_NAME:=blueoil_$$(id -un) | ||
BUILD_VERSION:=$(shell git describe --tags --always --dirty --match="v*" 2> /dev/null || cat $(CURDIR/.version 2> /dev/null || echo v0)) | ||
DOCKER_OPT:=--runtime=nvidia | ||
|
||
default: build | ||
|
||
.PHONY: deps | ||
deps: | ||
# Update dependencies | ||
git submodule update --init --recursive | ||
|
||
.PHONY: build | ||
build: deps | ||
# Build docker image | ||
docker build -t $(IMAGE_NAME):$(BUILD_VERSION) --build-arg python_version="3.6.3" -f docker/Dockerfile . | ||
|
||
.PHONY: test | ||
test: build | ||
# Run Blueoil test | ||
CUDA_VISIBLE_DEVICES=$(CUDA_VISIBLE_DEVICES) bash ./blueoil_test.sh | ||
|
||
.PHONY: test-lmnet | ||
test-lmnet: build | ||
# Run lmnet test with Python3.6 (only available on Jenkins) | ||
docker run $(DOCKER_OPT) -v /storage/dataset:/storage/dataset -v lmnet_saved:/storage/lmnet/saved -e CUDA_VISIBLE_DEVICES=$(CUDA_VISIBLE_DEVICES) -e DATA_DIR=/storage/dataset --rm $(IMAGE_NAME):$(BUILD_VERSION) /bin/bash -c "cd lmnet; tox -e py36" | ||
|
||
.PHONY: test-dlk | ||
test-dlk: build | ||
# Run dlk test (only available on Jenkins) | ||
docker run --rm -t -v /root/.ssh:/root/.ssh --net=host $(IMAGE_NAME):$(BUILD_VERSION) /bin/bash -c "apt-get update && apt-get install -y iputils-ping && cd dlk && python setup.py test" | ||
|
||
.PHONY: pep8-dlk | ||
pep8-dlk: | ||
# Check dlk PEP8 | ||
docker run --rm -t $(IMAGE_NAME):$(BUILD_VERSION) /bin/bash -c "cd dlk && pycodestyle --ignore=W --max-line-length=120 --exclude='*static/pb*','*docs/*','*.eggs*','*tvm/*','*tests/*','backends/*' ." | ||
|
||
.PHONY: clean | ||
clean: | ||
# Clean created files | ||
docker rmi $(IMAGE_NAME):$(BUILD_VERSION) | ||
rm -rf tmp/* |
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
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 was deleted.
Oops, something went wrong.
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
Empty file.
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,35 @@ | ||
# CI Servers for Blueoil | ||
We have several CI Servers | ||
* With GPU/OpenDatasets : https://jenkins.blue-oil.org | ||
* With FPGA device : https://jenkins.leapmind.local:8080 (only for LeapMind local access for now) | ||
|
||
## Automated Test with PR | ||
The tests run automatically by making PR. | ||
|
||
The triggers to run tests are below. | ||
* Create PR | ||
* Push commit to branch related PR | ||
* Comment in PR | ||
* Run all tests | ||
* Comment `run test` | ||
* Run the specified test individually | ||
* blueoil test : `run blueoil test` | ||
* lmnet test : `run lmnet test` | ||
* dlk test : `run dlk test` | ||
|
||
|
||
## Test Jobs | ||
All `make` tasks should be made in repository root dir. | ||
|
||
### [blueoil] test blueoil entire workflow with GPU | ||
* Cofiguration URL : https://jenkins.blue-oil.org/job/blueoil_main/configure | ||
* Script run by Jenkins : `make test` | ||
|
||
### [lmnet] test lmnet training part with GPU | ||
* Cofiguration URL : https://jenkins.blue-oil.org/job/blueoil_lmnet/configure | ||
* Script run by Jenkins : `make test-lmnet` | ||
|
||
### [dlk] test compiling and inference part on FPGA device | ||
* Cofiguration URL : http://jenkins.leapmind.local:8080/job/blueoil_dlk_test/configure | ||
* Now this test is available in LeapMind internal only because of the device limitation | ||
* Script run by Jenkins : `make test-dlk` |