forked from luoyetx/mini-caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (73 loc) · 2.3 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
skip_tags: true
skip_branch_with_pr: true
image: Visual Studio 2013
environment:
URL_3rdparty: https://github.com/luoyetx/misc/blob/master/mini-caffe/3rdparty.zip?raw=true
URL_model: https://github.com/luoyetx/misc/blob/master/mini-caffe/model.zip?raw=true
PYTHON2: "C:\\Python27-x64"
PYTHON3: "C:\\Python35-x64"
install:
- ps: |
if (!(Test-Path "3rdparty.zip")) {
echo "Downloading 3rdparty.zip from ${env:URL_3rdparty}"
appveyor DownloadFile "${env:URL_3rdparty}" -FileName 3rdparty.zip -Timeout 1200000
}
- cmd: |
7z x 3rdparty.zip -y -o"%APPVEYOR_BUILD_FOLDER%" >NUL
before_build:
- cmd: |
call generatepb.bat
build_script:
- cmd: |
mkdir build
cd build
cmake .. -DUSE_JAVA=ON -G "Visual Studio 12 2013 Win64"
msbuild mini-caffe.sln /t:Rebuild /p:Configuration=Release;Platform=x64 /m
cd ..
before_test:
- ps: |
if (!(Test-Path "model.zip")) {
echo "Downloading model.zip from ${env:URL_model}"
appveyor DownloadFile "${env:URL_model}" -FileName model.zip -Timeout 1200000
}
- cmd: |
7z x model.zip -y -o"%APPVEYOR_BUILD_FOLDER%/build/Release" >NUL
set PATH=%cd%\3rdparty\bin;%cd%\build\Release;%PATH%
test_script:
- cmd: |
cd build\Release
run_net
run_net_c
benchmark ./model/resnet.prototxt ./model/resnet.caffemodel 1 -1
move model ..
cd ../..
- cmd: |
cd java
gradlew.bat clean build --info
cd ..
- cmd: |
cd python
set PATH=%PYTHON2%;%PYTHON2%\Scripts;%PATH%
python --version
pip install numpy protobuf
python tests/test.py
python setup.py install
python setup.py clean
set PATH=%PYTHON3%;%PYTHON3%\Scripts;%PATH%
python --version
pip install numpy protobuf
python tests/test.py
python setup.py install
python setup.py clean
cd ..
- cmd: |
set PATH=%PYTHON2%;%PYTHON2%\Scripts;%PATH%
python tools/fuse_bn.py --net ./build/model/resnet.prototxt --weight ./build/model/resnet.caffemodel
set PATH=%PYTHON3%;%PYTHON3%\Scripts;%PATH%
python tools/fuse_bn.py --net ./build/model/resnet.prototxt --weight ./build/model/resnet.caffemodel
branches:
only:
- master