Files
jq/appveyor.yml
T

68 lines
3.9 KiB
YAML
Raw Normal View History

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
2019-02-20 21:58:58 -05:00
PATH: C:\Python36;C:\Python36\Scripts;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%
2016-01-16 22:20:23 +01:00
- MSYSTEM: MINGW32
2019-02-20 21:58:58 -05:00
PATH: C:\Python36;C:\Python36\Scripts;C:\msys64\usr\bin;C:\msys64\mingw32\bin;C:\Windows\System32;C:\Windows;%PATH%
2016-01-16 12:44:34 +01:00
2017-02-25 14:30:14 -06:00
clone_script:
2019-02-20 21:58:58 -05:00
- bash -lc "git clone -q --branch=${APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH:-$APPVEYOR_REPO_BRANCH} https://github.com/${APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME:-$APPVEYOR_REPO_NAME}.git $APPVEYOR_BUILD_FOLDER"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER && git checkout -qf ${APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH:APPVEYOR_REPO_BRANCH}"
2017-02-25 14:30:14 -06:00
- bash -lc "cd $APPVEYOR_BUILD_FOLDER && git submodule update --init --recursive"
2016-01-16 12:44:34 +01:00
install:
2019-02-20 21:58:58 -05:00
# update msys2
2020-10-08 15:20:11 +09:00
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
2021-10-24 15:59:57 -05:00
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/bison-3.5.4-1-x86_64.pkg.tar.xz"
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/bison-3.5.4-1-x86_64.pkg.tar.xz.sig"
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/flex-2.6.4-1-x86_64.pkg.tar.xz"
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/flex-2.6.4-1-x86_64.pkg.tar.xz.sig"
#- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/git-2.33.1-1-x86_64.pkg.tar.zst"
2020-10-08 15:20:11 +09:00
- C:\msys64\usr\bin\bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- C:\msys64\usr\bin\bash -lc "pacman -U --noconfirm msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
2021-10-24 15:59:57 -05:00
- C:\msys64\usr\bin\bash -lc "pacman-key --verify bison-3.5.4-1-x86_64.pkg.tar.xz.sig"
- C:\msys64\usr\bin\bash -lc "pacman -U --noconfirm bison-3.5.4-1-x86_64.pkg.tar.xz"
- C:\msys64\usr\bin\bash -lc "pacman-key --verify flex-2.6.4-1-x86_64.pkg.tar.xz.sig"
- C:\msys64\usr\bin\bash -lc "pacman -U --noconfirm flex-2.6.4-1-x86_64.pkg.tar.xz"
2020-10-08 15:20:11 +09:00
- ps: Get-Process | Where-Object {$_.path -like 'C:\msys64*'} | Stop-Process
2021-10-24 15:59:57 -05:00
#- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
#- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Su"
#- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex git"
2019-02-20 21:58:58 -05:00
- C:\msys64\usr\bin\bash -lc "pip3 install --upgrade pipenv"
- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER/docs && pipenv sync"
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-25 14:30:14 -06:00
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && ./configure --with-oniguruma=builtin --disable-shared --enable-static --enable-all-static"
2019-02-20 21:58:58 -05:00
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make"
2016-04-14 18:22:16 +02:00
- 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:
# tests/optionaltest and tests/shtest fail on Windows; run them
# anyways but ignore their failures. Also, trace shtest.
2017-02-25 14:30:14 -06:00
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make -j3 SUBDIRS= 'TESTS=tests/mantest tests/jqtest tests/onigtest tests/base64test' check"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make SUBDIRS= TESTS=tests/optionaltest check || true"
- bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make SUBDIRS= TRACE_TESTS=1 TESTS=tests/shtest check || true"
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:
2017-02-25 14:30:14 -06:00
- cat config.log
2016-04-14 18:22:16 +02:00
- 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