forked from pgbouncer/pgbouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
39 lines (33 loc) · 1.34 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
image: Visual Studio 2019
environment:
matrix:
- MSYSTEM: MINGW32
- MSYSTEM: MINGW64
install:
- git submodule update --init --recursive
- set PATH=C:/msys64/usr/bin;%PATH%
- choco install -y --no-progress msys2
- sh -l -c "pacman --noconfirm -S --needed base-devel ${MINGW_PACKAGE_PREFIX}-gcc ${MINGW_PACKAGE_PREFIX}-libevent ${MINGW_PACKAGE_PREFIX}-openssl ${MINGW_PACKAGE_PREFIX}-postgresql autoconf automake libtool ${MINGW_PACKAGE_PREFIX}-python ${MINGW_PACKAGE_PREFIX}-python-pip zip"
- sh -l -c 'pip install -r /c/projects/pgbouncer-pgbouncer/requirements.txt'
- echo 127.0.0.1 localhost >> c:\Windows\System32\Drivers\etc\hosts
- sh -l -c 'echo "127.0.0.1 localhost" >> /etc/hosts'
- choco install -y --no-progress pandoc
build_script:
- set HOME=.
- set PATH=C:/msys64/usr/bin;%PATH%
- sh -l -c "./autogen.sh"
- sh -l -c "./configure --enable-werror LDFLAGS=-static LIBS=-liphlpapi PKG_CONFIG='pkg-config --static'"
- sh -l -c "make -j4"
- sh -l -c "make -j4 install"
- sh -l -c "make -j4 zip"
artifacts:
- path: '*.zip'
test_script:
- set HOME=.
- set PATH=C:/msys64/usr/bin;%PATH%
- sh -l -c "make -j4 check CONCURRENCY=4"
- sh -l -c "windres pgbouncer.exe"
on_failure:
- set HOME=.
- sh -l -c "test -f config.status || cat config.log"
- sh -l -c "find test/ -name '*.log' | xargs tail -n40 -v"