Remove TravisCI configuration file and fix GitHub actions badges (#2602)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Remove TravisCI configuration file * Update CI badges in README.md to refer to GitHub Actions
authored by itchyny · committed by GitHub · parent 019a9ff · Browse files · 2 files·+3 added−214 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+3 added−214 removed
- other:+3 added−214 removed
Provenance
- Commit
527ea01- Tree
c77aad6- Author
itchyny <itchyny@cybozu.co.jp>- Committer
GitHub <noreply@github.com>- Parent
019a9ff
2 files changed+3 added−214 removed
deleted:.travis.yml-210 removed
1-sudo: false2-3-language: c4-5-stages:6- - name: test7-8- - name: build9- # Don't run build stage for pull requests to save time and resources.10- if: type != pull_request11-12-13-jobs:14- include:15- # Build with gcc and run tests on Ubuntu.16- - &test-ubuntu17- stage: test18- os: linux19- compiler: gcc20- python: 3.621-22- addons:23- apt:24- packages:25- - valgrind26- - bison27- - automake28-29- before_install:30- - uname -s31- - pyenv install -s 3.6.732- - rm src/{lexer,parser}.{c,h}33- - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac34-35- install:36- - pyenv global 3.6.737- - pip3 install pipenv38- - pushd docs && pipenv sync && popd39- - wget http://ftp.debian.org/debian/pool/main/b/bison/bison_3.0.2.dfsg-2_amd64.deb40- - ar p bison_3.0.2.dfsg-2_amd64.deb data.tar.xz | tar xJ41- - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi42-43- before_script:44- # If this is OS X we'll get bison from brew, else we'll get bison45- # from the .deb unpacked above in the install section.46- - PATH=/usr/local/opt/bison/bin:$PWD/usr/bin:$PATH47- - echo SHELL=$SHELL48- - echo PATH=$PATH49- - which bison50- - bison --version51- - autoreconf -if52- - ./configure --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE53-54- script:55- # When using the bison from Debian we need to tell that bison where56- # to find its data. Yay non-relocatable code. Not.57- - echo PATH=$PATH58- - which bison59- - make BISON_PKGDATADIR=$PWD/usr/share/bison src/parser.c || make src/parser.c60- # Make dist!61- #62- # Make it first to fail the build early, before we test with63- # valgrind.64- - make dist65- # Build and test the dist (without valgrind)66- - |67- (68- tar xvf jq-`scripts/version`.tar.gz &&69- cd jq-`scripts/version` &&70- pwd &&71- ./configure --disable-valgrind --with-oniguruma=builtin YACC="$(which bison) -y" $COVERAGE &&72- make BISON_PKGDATADIR=$PWD/usr/share/bison src/parser.c || make src/parser.c &&73- make -j4 &&74- make check -j4 || true75- )76- # Build and test the HEAD77- - make -j478- - make check -j479-80- after_failure:81- - cat test-suite.log82- - cat tests/*.log83-84-85- # Build with clang and run tests on Ubuntu.86- - <<: *test-ubuntu87- compiler: clang88-89-90- # Build with gcc and run tests with gcov on Ubuntu.91- - <<: *test-ubuntu92- env: COVERAGE="--disable-valgrind --enable-gcov"93-94- after_script:95- - rm -rf src/.libs # don't care about coverage for libjq96- - coveralls --gcov-options '\-lp'97- -e src/lexer.c -e src/parser.c -e src/jv_dtoa.c98-99-100- # Build with gcc and run tests on macOS.101- - &test-osx102- <<: *test-ubuntu103- os: osx104-105- before_install:106- - uname -s107- - brew update108- - brew install flex bison109- - brew upgrade pyenv110- - pyenv install -s 3.6.7111- - rm src/{lexer,parser}.{c,h}112- - sed -i.bak '/^AM_INIT_AUTOMAKE(\[-Wno-portability 1\.14\])$/s/14/11/' modules/oniguruma/configure.ac113-114- install:115- - pyenv global 3.6.7116- - pip3 install pipenv117- - pushd docs && pipenv sync && popd118- - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi119-120-121- # Build with clang and run tests on macOS.122- - <<: *test-osx123- compiler: clang124-125-126- # Build with gcc and run tests on Alpine Linux v3.7 (inside chroot).127- # Note: Alpine uses musl libc.128- - &test-alpine129- stage: test130- os: linux131- language: minimal132- compiler: gcc133- sudo: true134-135- before_install:136- - "wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.7.0/alpine-chroot-install' \137- && echo '090d323d887ef3a2fd4e752428553f22a52b87bb alpine-chroot-install' | sha1sum -c || travis_terminate 1"138- - alpine() { /alpine/enter-chroot -u "$USER" "$@"; }139-140- install:141- - sudo sh alpine-chroot-install -b v3.7 -a "$ARCH"142- -p 'build-base automake autoconf bison git libtool oniguruma-dev python3 python3-dev libxml2-dev libxslt-dev'143- - /alpine/enter-chroot pip3 install pipenv144- - alpine sh -c 'cd docs && pipenv sync'145-146- before_script:147- - autoreconf -if148-149- script:150- - alpine ./configure --disable-docs151- - alpine make152- - alpine make check153-154- after_failure:155- - cat test-suite.log156- - cat tests/*.log157-158- # Build release binary statically linked with musl libc on Alpine Linux159- # (inside chroot). If building a tagged commit, then deploy release160- # tarball to GitHub Releases.161- - &build-alpine162- <<: *test-alpine163- stage: build164- env: ARCH=x86_64165-166- script:167- - alpine ./configure --disable-docs --enable-all-static168- CFLAGS='-Os -static -no-pie' CXXFLAGS='-Os -static -no-pie'169- - alpine make170- - alpine strip jq171-172- - jq -V173- - ls -lah jq174- - file jq175- # Ensure that the built executable is really statically linked.176- - file jq | grep -Fw 'statically linked'177-178- before_deploy:179- - PKGNAME="jq-$TRAVIS_TAG-$ARCH-linux"180- - mkdir $PKGNAME && mv jq $PKGNAME/181- - tar -czf $PKGNAME.tar.gz $PKGNAME/182- - sha256sum $PKGNAME.tar.gz > $PKGNAME.tar.gz.sha256183-184- deploy:185- provider: releases186- api_key:187- secure: # TODO: put encrypted GitHub token here!188- file: jq-$TRAVIS_TAG-*.tar.gz*189- file_glob: true190- skip_cleanup: true191- on:192- tags: true193-194- # Build binaries for other architectures using QEMU user-mode emulation.195- - <<: *build-alpine196- env: ARCH=x86197-198- - <<: *build-alpine199- env: ARCH=aarch64200-201- - <<: *build-alpine202- env: ARCH=armhf203-204- - <<: *build-alpine205- env: ARCH=ppc64le206-207-208-notifications:209- email: false210-modified:README.md+3 added-4 removed
123456786789101011121365 unmodified linesjq==
jq is a lightweight and flexible command-line JSON processor.
[](https://coveralls.io/github/stedolan/jq?branch=master),Unix: [](https://travis-ci.org/stedolan/jq),Windows: [](https://ci.appveyor.com/project/stedolan/jq)[](https://github.com/jqlang/jq/actions/workflows/linux.yml?query=branch%3Amaster)[](https://github.com/jqlang/jq/actions/workflows/macos.yml?query=branch%3Amaster)[](https://github.com/jqlang/jq/actions/workflows/windows.yml?query=branch%3Amaster)
If you want to learn to use jq, read the documentation at[https://jqlang.github.io/jq](https://jqlang.github.io/jq). Thisdocumentation is generated from the docs/ folder of this repository.You can also try it online at [jqplay.org](https://jqplay.org).65 unmodified lines