2016-01-16 22:20:23 +01:00
|
|
|
environment:
|
2016-01-16 12:44:34 +01:00
|
|
|
matrix:
|
2016-01-16 22:20:23 +01:00
|
|
|
- MSYSTEM: MINGW64
|
|
|
|
PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%
|
|
|
|
- MSYSTEM: MINGW32
|
|
|
|
PATH: C:\msys64\usr\bin;C:\msys64\mingw32\bin;C:\Windows\System32;C:\Windows;%PATH%
|
2016-01-16 12:44:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
# update mysy2
|
2016-04-14 18:22:16 +02:00
|
|
|
- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
|
|
|
|
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy"
|
|
|
|
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex"
|
2017-02-23 00:33:08 -06:00
|
|
|
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git"
|
|
|
|
- git submodule update --init --recursive
|
2016-01-16 12:44:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
build_script:
|
2016-04-14 18:22:16 +02:00
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && autoreconf -i"
|
2017-02-23 00:33:08 -06:00
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && ./configure --with-onigurum=builtin --disable-shared --enable-static --enable-all-static"
|
2016-04-14 18:22:16 +02:00
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make -j8"
|
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && cat jq.1 | groff -mandoc -Thtml > jq.html"
|
|
|
|
- 7z a jq-package.zip jq.1 jq.html jq.exe
|
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && pwd && ls -la"
|
|
|
|
- file jq.exe
|
2016-01-16 12:44:34 +01:00
|
|
|
|
2016-04-14 18:22:16 +02:00
|
|
|
test_script:
|
2016-01-17 12:38:35 -06:00
|
|
|
# tests/optionaltest and tests/shtest fail on Windows; run them
|
|
|
|
# anyways but ignore their failures. Also, trace shtest.
|
2016-01-24 23:30:28 +00:00
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make -j3 'TESTS=tests/mantest tests/jqtest tests/onigtest tests/base64test' check"
|
2016-04-14 18:22:16 +02:00
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make TESTS=tests/optionaltest check || cat test-suite.log"
|
|
|
|
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make TRACE_TESTS=1 TESTS=tests/shtest check || cat test-suite.log"
|
2016-01-16 12:44:34 +01:00
|
|
|
|
2016-04-14 18:22:16 +02:00
|
|
|
artifacts:
|
|
|
|
- path: jq-package.zip
|
|
|
|
name: jq-package
|
2016-01-16 12:44:34 +01:00
|
|
|
|
2016-04-14 18:22:16 +02:00
|
|
|
- path: jq.exe
|
|
|
|
name: jq-exe
|
2016-01-16 12:44:34 +01:00
|
|
|
|
2016-04-14 18:22:16 +02:00
|
|
|
- path: test-suite.log
|
|
|
|
name: logs
|
2016-01-16 22:39:55 +01:00
|
|
|
|
|
|
|
|
2016-04-14 18:22:16 +02:00
|
|
|
on_failure:
|
|
|
|
- cat test-suite.log
|
|
|
|
- appveyor PushArtifact test-suite.log
|
2016-01-16 22:39:55 +01:00
|
|
|
# also push the jq.exe so that someone can download it anyways...
|
2016-04-14 18:22:16 +02:00
|
|
|
- appveyor PushArtifact jq-package.zip
|
2016-01-16 22:39:55 +01:00
|
|
|
|