-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
71 lines (55 loc) · 1.83 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
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
branches:
only:
- master
- develop
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2013
clone_folder: c:\projects\ogs
clone_depth: 3
install:
# Lis
- ps: wget https://github.com/norihiro-w/ogs5-egs/releases/download/v5.3.3-egs.1.8/precompiled.zip -OutFile "$pwd\precompiled.zip"
- ps: dir
- ps: 7z.exe x precompiled.zip
- ps: dir precompiled
- SET LIS_DIR=$pwd\precompiled
#---------------------------------#
# build configuration #
#---------------------------------#
platform: x64
configuration: Release
build_script:
- cd c:\projects\ogs
- mkdir build
- cd build
- cmake .. -G "Visual Studio 12 2013" -DOGS_FEM_LIS=ON -DLIS_INCLUDE_DIR=c:\projects\ogs\precompiled -DLIS_LIBRARIES=c:\projects\ogs\precompiled\lisomp.lib -DMSVC_RUNTIME=static
- cmake --build . --config Release
artifacts:
- path: build\bin\Release\ogs.exe
name: ogs
#---------------------------------#
# deploy configuration #
#---------------------------------#
#deploy:
# provider: GitHub
# auth_token:
# secure: 58e7181e58b69d7b964e2e1849e0cb928e35cc8c # your encrypted token from GitHub
# artifact: build\bin\Release\ogs.exe
# draft: false
# prerelease: false
# on:
# branch: master # release from master branch only
# appveyor_repo_tag: true # deploy on tag push only