Repository navigation
Expand file tree
/
Copy pathappveyor.yml
More file actions
110 lines (87 loc) · 2.56 KB
/
Copy pathappveyor.yml
File metadata and controls
110 lines (87 loc) · 2.56 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
#image:
# - Visual Studio 2015
# - Ubuntu
skip_non_tags: true
environment:
# these variables are common to all jobs
BUILD_OWNER: hernad
# disable powershell on linux
APPVEYOR_YML_DISABLE_PS_LINUX: true
F18_VERSION: 3.1.327
matrix:
# - MSYS2_ARCH: x86_64
# MSYSTEM: MINGW64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
MSYS2_ARCH: i686
MSYSTEM: MINGW32
BUILD_ARTIFACT: windows_x86
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
BUILD_ARTIFACT: linux_x86
#appveyor_repo_tag: true
only_commits:
message: /BUILD_RELEASE/
#skip_commits:
# author: /John|Jack/
platform:
- x86
configuration:
- Release
build_script:
- cmd: '%APPVEYOR_BUILD_FOLDER%\appveyor.bat'
- sh: '${APPVEYOR_BUILD_FOLDER}/appveyor.sh'
before_test:
# https://help.appveyor.com/discussions/questions/2356-conditionally-enable-services
#services:
# - postgresql96
- ps: Start-Service postgresql-x64-9.6
- cmd: SET PGUSER=postgres
- cmd: SET PGPASSWORD=Password12!
- cmd: PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
- cmd: createdb F18_test
- sh: sudo apt-get remove -y libpq-dev:i386
- sh: sudo apt install -y postgresql postgresql-contrib
- sh: sudo service postgresql start
- sh: sudo -u postgres ${APPVEYOR_BUILD_FOLDER}/F18_test_db.sh
- sh: sudo apt-get install -y xvfb
test_script:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: F18.exe -h localhost -u postgres -p Password12! -d F18_test --show-postgresql-version
- sh: LD_LIBRARY_PATH=. xvfb-run --server-args="-screen 0 1024x768x24" ./F18 -h localhost -u postgres -p Password12! -d F18_test --show-postgresql-version
on_success:
#- cmd: cd C:\
- cmd: if [%BUILD_TYPE%]==[Release] echo "SUCCESS"
- sh: echo "Ubuntu sucess :)"
artifacts:
# relative to build folder
- path: F18_$(BUILD_ARTIFACT)_$(F18_VERSION).zip
deploy:
- provider: BinTray
name: bintray hernad windows
username: hernad
subject: hernad
repo: F18
package: F18-windows-x86
version: '$(F18_VERSION)'
api_key:
secure: CmTociD4LaDugZgY8k5Esn0tcA1nGvV583hTrbUGmGrnBtb6B1xyArOBmFzN5TjTLuRrfB9kBNiYtqyhBf0v2HZE8uKm2cl8zGoYTU8Afb0=
publish: true
override: true
on:
#appveyor_repo_tag: true
BUILD_ARTIFACT: windows_x86
CI_WINDOWS: true
- provider: BinTray
name: bintray hernad ubuntu
username: hernad
subject: hernad
repo: F18
package: F18-linux-x86
version: '$(F18_VERSION)'
api_key:
secure: CmTociD4LaDugZgY8k5Esn0tcA1nGvV583hTrbUGmGrnBtb6B1xyArOBmFzN5TjTLuRrfB9kBNiYtqyhBf0v2HZE8uKm2cl8zGoYTU8Afb0=
publish: true
override: true
on:
BUILD_ARTIFACT: linux_x86
CI_LINUX: true
#appveyor_repo_tag: true