Skip to content
Myr

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

2 files+3 added−214 removed

deleted:.travis.yml-210 removed
1sudo: false23language: c45stages:6 - name: test78 - name: build9 # Don't run build stage for pull requests to save time and resources.10 if: type != pull_request111213jobs:14 include:15 # Build with gcc and run tests on Ubuntu.16 - &test-ubuntu17 stage: test18 os: linux19 compiler: gcc20 python: 3.62122 addons:23 apt:24 packages:25 - valgrind26 - bison27 - automake2829 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.ac3435 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; fi4243 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" $COVERAGE5354 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 -j47980 after_failure:81 - cat test-suite.log82 - cat tests/*.log838485 # Build with clang and run tests on Ubuntu.86 - <<: *test-ubuntu87 compiler: clang888990 # Build with gcc and run tests with gcov on Ubuntu.91 - <<: *test-ubuntu92 env: COVERAGE="--disable-valgrind --enable-gcov"9394 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.c9899100 # Build with gcc and run tests on macOS.101 - &test-osx102 <<: *test-ubuntu103 os: osx104105 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.ac113114 install:115 - pyenv global 3.6.7116 - pip3 install pipenv117 - pushd docs && pipenv sync && popd118 - if [ -n "$COVERAGE" ]; then pip install --user cpp-coveralls; fi119120121 # Build with clang and run tests on macOS.122 - <<: *test-osx123 compiler: clang124125126 # 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: true134135 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" "$@"; }139140 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'145146 before_script:147 - autoreconf -if148149 script:150 - alpine ./configure --disable-docs151 - alpine make152 - alpine make check153154 after_failure:155 - cat test-suite.log156 - cat tests/*.log157158 # 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_64165166 script:167 - alpine ./configure --disable-docs --enable-all-static168 CFLAGS='-Os -static -no-pie' CXXFLAGS='-Os -static -no-pie'169 - alpine make170 - alpine strip jq171172 - jq -V173 - ls -lah jq174 - file jq175 # Ensure that the built executable is really statically linked.176 - file jq | grep -Fw 'statically linked'177178 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.sha256183184 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: true193194 # Build binaries for other architectures using QEMU user-mode emulation.195 - <<: *build-alpine196 env: ARCH=x86197198 - <<: *build-alpine199 env: ARCH=aarch64200201 - <<: *build-alpine202 env: ARCH=armhf203204 - <<: *build-alpine205 env: ARCH=ppc64le206207208notifications:209 email: false210
modified:README.md+3 added-4 removed