forked from brainflow-dev/brainflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
211 lines (199 loc) · 18.9 KB
/
Copy pathappveyor.yml
File metadata and controls
211 lines (199 loc) · 18.9 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
image:
- Visual Studio 2017
stack: python 3
environment:
PY_DIR: C:\Python36-x64
AWS_ACCESS_KEY_ID:
secure: BkEm2UFU7L/eihM1Sg0/F5SPVtyLqHWMBXXM1CialbE=
AWS_SECRET_ACCESS_KEY:
secure: gjIjWPDtmovPZ3/Q7Xo/WfUKzZRZGaXi4BRPuukeL6M8YA0+ydmmuEESk9g7DzuC
PYPI_PASSWORD:
secure: ZuRCW1W45pqH03Lio54BzQ==
GITHUB_TOKEN:
secure: Q0/Pyd8J+EX6/zaOuWATGu2OvRBLz53SYEFejI91VFiPEOJ0KbyZl+2UdYSzniDI
clone_depth: 3
build: off
init:
- cmd: set PATH=%PY_DIR%;%PY_DIR%\Scripts;C:\Program Files\Java\jdk1.8.0\bin;%APPVEYOR_BUILD_FOLDER%\installed64\lib;%APPVEYOR_BUILD_FOLDER%\installed32\lib;%APPVEYOR_BUILD_FOLDER%\tools;%PATH%
- cmd: set CNC_INSTALL_CNCA0_CNCB0_PORTS="YES"
- cmd: set JAVA_HOME=C:\Program Files\Java\jdk1.8.0
- cmd: set BRAINFLOW_VERSION=%APPVEYOR_REPO_TAG_NAME%
install:
# compile for Android for all ABIs, use Ninja
- mkdir %APPVEYOR_BUILD_FOLDER%\build_armv8 && cd %APPVEYOR_BUILD_FOLDER%\build_armv8 && cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r17\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-19 -DANDROID_ABI=arm64-v8a .. && cmake --build . --target install --config Release -j 2 --parallel 2
- mkdir %APPVEYOR_BUILD_FOLDER%\build_armv7 && cd %APPVEYOR_BUILD_FOLDER%\build_armv7 && cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r17\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-19 -DANDROID_ABI=armeabi-v7a .. && cmake --build . --target install --config Release -j 2 --parallel 2 > build_android_v7.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\build_arm86 && cd %APPVEYOR_BUILD_FOLDER%\build_arm86 && cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r17\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-19 -DANDROID_ABI=x86 .. && cmake --build . --target install --config Release -j 2 --parallel 2 > build_android_86.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\build_arm64 && cd %APPVEYOR_BUILD_FOLDER%\build_arm64 && cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\ProgramData\Microsoft\AndroidNDK64\android-ndk-r17\build\cmake\android.toolchain.cmake -DANDROID_NATIVE_API_LEVEL=android-19 -DANDROID_ABI=x86_64 .. && cmake --build . --target install --config Release -j 2 --parallel 2 > build_android_64.txt
- cd %APPVEYOR_BUILD_FOLDER% && 7z a jniLibs.zip %APPVEYOR_BUILD_FOLDER%\tools\jniLibs
# compile brainflow for 32 and 64
- mkdir %APPVEYOR_BUILD_FOLDER%\build32 && cd %APPVEYOR_BUILD_FOLDER%\build32 && cmake -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_INSTALL_PREFIX=..\installed32\ .. && cmake --build . --target install --config Release -j 2 --parallel 2 > brainflow_build32_stdout.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\build64 && cd %APPVEYOR_BUILD_FOLDER%\build64 && cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_INSTALL_PREFIX=..\installed64\ .. && cmake --build . --target install --config Release -j 2 --parallel 2 > brainflow_build64_stdout.txt
# nuget package for csharp
- nuget install Accord -OutputDirectory ../csharp-package/brainflow/packages && nuget install Accord.Math -OutputDirectory ../csharp-package/brainflow/packages
# charp build Any CPU
- cd %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow && msbuild brainflow.sln /p:Configuration=Release /p:Platform="Any CPU"
# install emulator for cyton
- pip install %APPVEYOR_BUILD_FOLDER%\emulator\
- cd %APPVEYOR_BUILD_FOLDER% && %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\com0com\certmgr.exe /add %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\com0com\com0com.cer /s /r localMachine root
- cd %APPVEYOR_BUILD_FOLDER% && %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\com0com\certmgr.exe /add %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\com0com\com0com.cer /s /r localMachine trustedpublisher
# install python package
- pip install %APPVEYOR_BUILD_FOLDER%\python-package\
# install dependencies for python tests
- pip install -r %APPVEYOR_BUILD_FOLDER%\tests\python\requirements.txt
# build cpp tests
- mkdir %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build && cd %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build && cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed64\ .. && cmake --build . --config Release -j 2 --parallel 2 > cpp_get_data_demo_build64_stdout.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build32 && cd %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build32 && cmake -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed32\ .. && cmake --build . --config Release -j 2 --parallel 2 > cpp_get_data_demo_build32_stdout.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build && cd %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build && cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed64\ .. && cmake --build . --config Release -j 2 --parallel 2 > cpp_signal_processing_demo_build64_stdout.txt
- mkdir %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32 && cd %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32 && cmake -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%\installed32\ .. && cmake --build . --config Release -j 2 --parallel 2 > cpp_signal_processing_demo_build32_stdout.txt
# mvn package for java
- cd %APPVEYOR_BUILD_FOLDER%\java-package\brainflow && mvn package > maven_package_stdout.txt
test_script:
# tests for boards
# tests for cyton
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id 0 --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id 0 --streamer-params file://file_streamer.csv:w --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_multiboard_get_data.py --log --board-id 0 --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build\Release\brainflow_get_data.exe --board-id 0 --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow_get_data\bin\Release\test.exe --board-id 0 --serial-port
# tests for synthetic
- python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id -1
- python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id -1 --streamer-params file://file_streamer.csv:w
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build\Release\brainflow_get_data.exe --board-id -1
- cd %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow_get_data\bin\Release && test.exe --board-id -1
# tests for cyton daisy
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id 2 --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id 2 --streamer-params file://file_streamer.csv:a --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build\Release\brainflow_get_data.exe --board-id 2 --serial-port
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\cyton_windows.py %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow_get_data\bin\Release\test.exe --board-id 2 --serial-port
# tests for novaxr
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\novaxr_udp.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --board-id 3 --ip-address 127.0.0.1 --log
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\novaxr_udp.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build\Release\brainflow_get_data.exe --board-id 3 --ip-address 127.0.0.1
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\novaxr_udp.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build32\Release\brainflow_get_data.exe --board-id 3 --ip-address 127.0.0.1
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\novaxr_udp.py %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow_get_data\bin\Release\test.exe --board-id 3 --ip-address 127.0.0.1
# tests for wifi shield based boards
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\wifi_shield_emulator.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --board-id 4 --ip-address 127.0.0.1 --ip-port 17982
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\wifi_shield_emulator.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build\Release\brainflow_get_data.exe --board-id 5 --ip-address 127.0.0.1 --ip-port 17983
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\wifi_shield_emulator.py %APPVEYOR_BUILD_FOLDER%\tests\cpp\get_data_demo\build32\Release\brainflow_get_data.exe --board-id 5 --ip-address 127.0.0.1 --ip-port 17993
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\wifi_shield_emulator.py %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow_get_data\bin\Release\test.exe --board-id 6 --ip-address 127.0.0.1 --ip-port 17984
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\wifi_shield_emulator.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --board-id 4 --ip-address 127.0.0.1 --ip-port 17986 --streamer-params file://file_streamer.csv:w
# tests for streaming board
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\streaming_board_emulator.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --log --board-id -2 --ip-address 225.1.1.1 --ip-port 6677 --other-info -1
# test for fascia
- python %APPVEYOR_BUILD_FOLDER%\emulator\brainflow_emulator\fascia_emulator_ci.py python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_get_data.py --board-id 12 --ip-port 7789
# tests for signal processing
# python
- python %APPVEYOR_BUILD_FOLDER%\tests\python\denoising.py
- python %APPVEYOR_BUILD_FOLDER%\tests\python\serialization.py
- python %APPVEYOR_BUILD_FOLDER%\tests\python\signal_filtering.py
- python %APPVEYOR_BUILD_FOLDER%\tests\python\transforms.py
- python %APPVEYOR_BUILD_FOLDER%\tests\python\downsampling.py
- python %APPVEYOR_BUILD_FOLDER%\tests\python\brainflow_to_mne.py
# C++ 32
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32\Release\denoising.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32\Release\downsampling.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32\Release\signal_filtering.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32\Release\serialization.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build32\Release\transforms.exe
# C++ 64
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build\Release\denoising.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build\Release\downsampling.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build\Release\signal_filtering.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build\Release\serialization.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\tests\cpp\signal_processing_demo\build\Release\transforms.exe
# C#
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\downsampling\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\denoising\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\serialization\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\transforms\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\signal_filtering\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\band_power\bin\Release\test.exe
- echo "stub text to dont start command with special character" && %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\band_power_all\bin\Release\test.exe
deploy_script:
- python -m pip install wheel > wheel_install.txt
- python -m pip install twine > twine_install.txt
- python -m pip install awscli > awscli_install.txt
# upload to S3 in all cases, we will always be able to download libs
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\installed32\inc\ s3://brainflow/%APPVEYOR_REPO_COMMIT%/inc --recursive
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\installed32\lib\ s3://brainflow/%APPVEYOR_REPO_COMMIT%/lib32 --recursive
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\installed64\lib\ s3://brainflow/%APPVEYOR_REPO_COMMIT%/lib64 --recursive
- aws s3 cp %APPVEYOR_BUILD_FOLDER%\jniLibs.zip s3://brainflow/%APPVEYOR_REPO_COMMIT%/jniLibs.zip
# download files from travis using S3 create package and publish it
- ps: >-
cd $env:APPVEYOR_BUILD_FOLDER\csharp-package\brainflow\brainflow;
If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
(gc .\brainflow.nuspec).replace('0.0.1',$env:APPVEYOR_REPO_TAG_NAME) | Out-File -encoding ASCII brainflow.nuspec
}
nuget pack brainflow.csproj -properties Configuration=Release -IncludeReferencedProjects;
aws s3 cp %APPVEYOR_BUILD_FOLDER%\csharp-package\brainflow\brainflow s3://brainflow/%APPVEYOR_REPO_COMMIT%/nuget --recursive;
$lin = $false;
$osx = $false;
for ($i=0; $i -lt 30; $i++) {
# wait 30 minutes or until mac and linux binaries appear in s3
aws s3 ls s3://brainflow/$env:APPVEYOR_REPO_COMMIT/linux_success;
$lin = $?;
aws s3 ls s3://brainflow/$env:APPVEYOR_REPO_COMMIT/osx_success;
$osx = $?
if($lin -and $osx) {break}
# stop waiting if linux or mac tests fail
aws s3 ls s3://brainflow/$env:APPVEYOR_REPO_COMMIT/linux_failure;
$lin_fail = $?;
aws s3 ls s3://brainflow/$env:APPVEYOR_REPO_COMMIT/osx_failure;
$osx_fail = $?
if($lin_fail -or $osx_fail) {
write-output "Skip deployment, travis build failed"
break
}
Start-Sleep -s 60;
echo "not found"
}
If ($lin -and $osx) {
write-output "Binaries found - running deployment"
New-Item $env:APPVEYOR_BUILD_FOLDER\linux -itemtype directory
New-Item $env:APPVEYOR_BUILD_FOLDER\osx -itemtype directory
aws s3 cp s3://brainflow/$env:APPVEYOR_REPO_COMMIT/linux/ $env:APPVEYOR_BUILD_FOLDER\linux\ --recursive
ls $env:APPVEYOR_BUILD_FOLDER\linux
aws s3 cp s3://brainflow/$env:APPVEYOR_REPO_COMMIT/osx/ $env:APPVEYOR_BUILD_FOLDER\osx\ --recursive
ls $env:APPVEYOR_BUILD_FOLDER\osx
cd $env:APPVEYOR_BUILD_FOLDER\java-package\brainflow
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\linux\*" -Destination "$env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\src\main\resources" -Recurse
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\osx\*" -Destination "$env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\src\main\resources" -Recurse
ls $env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\src\main\resources;
If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
(gc .\pom.xml).replace('0.0.1-SNAPSHOT',$env:APPVEYOR_REPO_TAG_NAME) | Out-File -encoding ASCII pom.xml
}
(gc .\settings.xml).replace('USER','Andrey1994') | Out-File -encoding ASCII settings.xml
(gc .\settings.xml).replace('TOKEN',$env:GITHUB_TOKEN) | Out-File -encoding ASCII settings.xml
mvn clean
mvn package > mvn_final_stdout.txt
mvn -s $env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\settings.xml deploy -Dregistry=https://maven.pkg.github.com/brainflow-dev -Dtoken=$env:GITHUB_TOKEN
#upload .jars to aws
aws s3 cp %APPVEYOR_BUILD_FOLDER%\java-package\brainflow\target\ s3://brainflow/%APPVEYOR_REPO_COMMIT%/jars --recursive
If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\linux\*" -Destination "$env:APPVEYOR_BUILD_FOLDER\python-package\brainflow\lib" -Recurse
Copy-Item "$env:APPVEYOR_BUILD_FOLDER\osx\*" -Destination "$env:APPVEYOR_BUILD_FOLDER\python-package\brainflow\lib" -Recurse
ls $env:APPVEYOR_BUILD_FOLDER\python-package\brainflow\lib
cd $env:APPVEYOR_BUILD_FOLDER\python-package
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*.whl --user Andrey1994 --password $env:PYPI_PASSWORD
cd $env:APPVEYOR_BUILD_FOLDER\tools
.\github-release.exe release --user brainflow-dev --repo brainflow --tag $env:APPVEYOR_REPO_TAG_NAME
.\github-release.exe upload --user brainflow-dev --repo brainflow --tag $env:APPVEYOR_REPO_TAG_NAME --name brainflow.jar --file $env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\target\brainflow.jar
.\github-release.exe upload --user brainflow-dev --repo brainflow --tag $env:APPVEYOR_REPO_TAG_NAME --name brainflow-jar-with-dependencies.jar --file $env:APPVEYOR_BUILD_FOLDER\java-package\brainflow\target\brainflow-jar-with-dependencies.jar
.\github-release.exe upload --user brainflow-dev --repo brainflow --tag $env:APPVEYOR_REPO_TAG_NAME --name jniLibs.zip --file $env:APPVEYOR_BUILD_FOLDER\jniLibs.zip
}
Else {
write-output "Skip deployment for non tag"
}
}
Else {
write-output "Failed to wait for mac and linux libs"
}
on_finish:
- appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\build64\brainflow_build64_stdout.txt
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: true