forked from JSBSim-Team/jsbsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (40 loc) · 1.81 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
# see: https://www.appveyor.com/docs/appveyor-yml/
image: Visual Studio 2017
version: 1.0.{build}
# Need to add Python 3.6 explicitly to the path for CMake to pick it up,
# also need to hide Python 2.7 otherwise CMake picks it up in preference to 3.6.
# Cython isn't installed by default so we need to install it
# Cython also gives a warning about not being on the path if the python36-x64 directory
# name in the PATH isn't all lowercase.
# Need to call vcvarsall.bat to setup path and env variables for the
# the VS2017 compiler in order for CMake to pick them up
# Need to explicitly set the path to Ninja.exe as the make program
build_script:
- set PATH=c:\python36-x64;c:\python36-x64\Scripts;%PATH%
- ren c:\python27 python27-hide
- pip install Cython numpy pandas scipy
- md build
- cd build
- call "c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
- cmake -G "Ninja" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2017\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" -DCMAKE_BUILD_TYPE="RelWithDebInfo" ..
- cmake --build . --config RelWithDebInfo
- ctest -j2 -E TestInputSocket
artifacts:
- path: build\src\JSBSim.exe
name: JSBSim_Release_x64_v2018a
- path: build\utils\aeromatic++\aeromatic.exe
name: JSBSim_Release_x64_v2018a
# Do not build on tags (GitHub and BitBucket)
# to avoid infinite build loops
skip_tags: true
# Removed tag: JSBSim-win64-v$(appveyor_build_version)
deploy:
- provider: GitHub
tag: JSBSim-trusty-v2018a
description: Windows - Release - x64
auth_token:
secure: YWG8FRFWv/ylTuA1DIFNcN01uFGz7xKit8CayOMTE0orPKXhztwLmwm8MZ4IzFbr
artifact: build\src\JSBSim.exe,build\utils\aeromatic++\aeromatic.exe
prerelease: true
on:
branch: master