forked from RobotWebTools/ros2-web-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (48 loc) · 2.4 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
version: '{branch}-{build}'
branches:
only:
- master
- develop
image: Visual Studio 2019
environment:
nodejs_version: "12"
PYTHON3: "c:\\Python37-x64"
PYTHON2: "c:\\Python27"
clone_folder: c:\proj\ros2-web-bridge
before_build:
- cd c:\
- md download
- cd download
- choco install -y wget cmake
- choco install -y vcredist140
- "SET PATH=C:\\Program Files\\CMake\\bin;%PATH%"
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/asio.1.12.1.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2020-02-24/bullet.2.89.0.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/cunit.2.1.3.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/eigen.3.3.4.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/tinyxml-usestl.2.6.2.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/tinyxml2.6.0.0.nupkg
- appveyor DownloadFile https://github.com/ros2/choco-packages/releases/download/2019-10-24/log4cxx.0.10.0.nupkg
- choco install -y -s c:\download\ asio bullet cunit eigen tinyxml-usestl tinyxml2 log4cxx
- appveyor DownloadFile https://github.com/ros2/ros2/releases/download/release-foxy-20201211/ros2-foxy-20201211-windows-release.amd64.zip
- 7z x -y "c:\download\ros2-foxy-20201211-windows-release.amd64.zip" -o"c:\" > nul
- setx -m OPENSSL_CONF C:\OpenSSL-v111-Win64\bin\openssl.cfg
- set PATH=C:\OpenSSL-v111-Win64\bin;%PATH%
- setx AMENT_PYTHON_EXECUTABLE "c:\Python37"
- refreshenv
- "SET PATH=%PYTHON3%;%PYTHON3%\\bin;%PYTHON3%\\Scripts;%PATH%"
- python -m pip install -U catkin_pkg cryptography empy ifcfg lark-parser lxml netifaces numpy opencv-python pyparsing pyyaml setuptools colcon-common-extensions
build_script:
- cd c:\proj\ros2-web-bridge
- ps: Install-Product node $env:nodejs_version x64
- call c:\ros2-windows\local_setup.bat
- "SET PATH=%PYTHON2%;%PYTHON2%\\bin;%PYTHON2%\\Scripts;%PATH%"
- node --version
- npm --version
- python --version
- npm install
- npm run lint
test_script:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
- "SET PATH=%PYTHON3%;%PYTHON3%\\bin;%PYTHON3%\\Scripts;C:\\Program Files\\CMake\\bin;%PATH%"
- npm run ci