mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Configure travis build to use python
This commit is contained in:
+12
-8
@@ -17,6 +17,7 @@ jobs:
|
|||||||
stage: test
|
stage: test
|
||||||
os: linux
|
os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
python: 3.6
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
@@ -27,13 +28,13 @@ jobs:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- uname -s
|
- uname -s
|
||||||
- rvm install ruby-1.9.3-p551
|
|
||||||
- rvm use 1.9.3
|
|
||||||
- rm src/{lexer,parser}.{c,h}
|
- rm src/{lexer,parser}.{c,h}
|
||||||
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
|
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- bundle install --gemfile=docs/Gemfile
|
- pyenv global 3.6
|
||||||
|
- pip3 install pipenv
|
||||||
|
- pushd docs && pipenv sync && popd
|
||||||
- wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb
|
- wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb
|
||||||
- ar p bison_3.0.2.dfsg-2_amd64.deb data.tar.xz | tar xJ
|
- ar p bison_3.0.2.dfsg-2_amd64.deb data.tar.xz | tar xJ
|
||||||
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
||||||
@@ -104,14 +105,12 @@ jobs:
|
|||||||
- uname -s
|
- uname -s
|
||||||
- brew update
|
- brew update
|
||||||
- brew install flex bison
|
- brew install flex bison
|
||||||
- rvm install ruby-1.9.3-p551
|
|
||||||
- rvm use 1.9.3
|
|
||||||
- gem install bundler
|
|
||||||
- rm src/{lexer,parser}.{c,h}
|
- rm src/{lexer,parser}.{c,h}
|
||||||
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
|
- sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- bundle install --gemfile=docs/Gemfile
|
- pip3 install pipenv
|
||||||
|
- pushd docs && pipenv sync && popd
|
||||||
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
- if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi
|
||||||
|
|
||||||
|
|
||||||
@@ -136,7 +135,9 @@ jobs:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo sh alpine-chroot-install -b v3.7 -a "$ARCH"
|
- sudo sh alpine-chroot-install -b v3.7 -a "$ARCH"
|
||||||
-p 'build-base automake autoconf bison libtool oniguruma-dev'
|
-p 'build-base automake autoconf bison git libtool oniguruma-dev python3 python3-dev libxml2-dev libxslt-dev'
|
||||||
|
- /alpine/enter-chroot pip3 install pipenv
|
||||||
|
- alpine sh -c 'cd docs && pipenv sync'
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- autoreconf -if
|
- autoreconf -if
|
||||||
@@ -146,6 +147,9 @@ jobs:
|
|||||||
- alpine make
|
- alpine make
|
||||||
- alpine make check
|
- alpine make check
|
||||||
|
|
||||||
|
after_failure:
|
||||||
|
- cat test-suite.log
|
||||||
|
- cat tests/*.log
|
||||||
|
|
||||||
# Build release binary statically linked with musl libc on Alpine Linux
|
# Build release binary statically linked with musl libc on Alpine Linux
|
||||||
# (inside chroot). If building a tagged commit, then deploy release
|
# (inside chroot). If building a tagged commit, then deploy release
|
||||||
|
|||||||
Reference in New Issue
Block a user