Commit 7fbadba6cdd6f6150dbe6864b57e5e24972e49a9

Authored by Jay Berkenbilt
1 parent bbd45cd0

Remove support for Travis CI

It is redundant with qpdf's main CI environment, which is Azure
Pipelines, but may soon be migrated to GitHub Actions.
.travis.yml deleted
1 -language: cpp  
2 -compiler: gcc  
3 -sudo: require  
4 -dist: xenial  
5 -  
6 -install:  
7 - - sudo apt-get update -qq  
8 - - sudo apt-get install -qq libgnutls28-dev docbook-xsl fop xsltproc less inkscape  
9 -  
10 -script:  
11 - - appimage/build-appimage  
12 -  
13 -after_success:  
14 - - cd appimage/build  
15 - - find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq  
16 - - ls -l # for more debugging in Travis' log  
17 - - curl --upload-file ./qpdf*.AppImage https://transfer.sh/qpdf-git.$(git rev-parse --short HEAD)-x86_64.AppImage  
18 - - sha512sum ./qpdf*.AppImage*  
19 -# Not ready to have travis automatically create github releases  
20 -# - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh  
21 -# - bash upload.sh qpdf-*x86_64.AppImage* # This should upload the .zsync file as well  
README.md
@@ -2,8 +2,7 @@ @@ -2,8 +2,7 @@
2 2
3 [![QPDF](logo/qpdf.svg)](http://qpdf.sourceforge.net) 3 [![QPDF](logo/qpdf.svg)](http://qpdf.sourceforge.net)
4 4
5 -[![Azure Pipeline Build Status](https://dev.azure.com/qpdf/qpdf/_apis/build/status/qpdf.qpdf)](https://dev.azure.com/qpdf/qpdf/_build/latest?definitionId=5) [![Travis Build Status](https://travis-ci.org/qpdf/qpdf.svg?branch=master)](https://travis-ci.org/qpdf/qpdf)  
6 -[![Total lgtm alerts](https://img.shields.io/lgtm/alerts/g/qpdf/qpdf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/qpdf/qpdf/alerts/) 5 +[![Azure Pipeline Build Status](https://dev.azure.com/qpdf/qpdf/_apis/build/status/qpdf.qpdf)](https://dev.azure.com/qpdf/qpdf/_build/latest?definitionId=5) [![Total lgtm alerts](https://img.shields.io/lgtm/alerts/g/qpdf/qpdf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/qpdf/qpdf/alerts/)
7 [![Language grade on lgtm: C/C++](https://img.shields.io/lgtm/grade/cpp/g/qpdf/qpdf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/qpdf/qpdf/context:cpp) 6 [![Language grade on lgtm: C/C++](https://img.shields.io/lgtm/grade/cpp/g/qpdf/qpdf.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/qpdf/qpdf/context:cpp)
8 7
9 This is the QPDF package. Information about it can be found at http://qpdf.sourceforge.net. The source code repository is hosted at GitHub: https://github.com/qpdf/qpdf. 8 This is the QPDF package. Information about it can be found at http://qpdf.sourceforge.net. The source code repository is hosted at GitHub: https://github.com/qpdf/qpdf.
1 Candidates for upcoming release 1 Candidates for upcoming release
2 =============================== 2 ===============================
3 3
4 -* Trivial fixes:  
5 - * Remove travisci  
6 -  
7 * Quick issues: 4 * Quick issues:
8 * #438: things written to stdout instead of stderr; --no-warn issues 5 * #438: things written to stdout instead of stderr; --no-warn issues
9 * #454: integer overflow 6 * #454: integer overflow
appimage/build-appimage
@@ -2,14 +2,12 @@ @@ -2,14 +2,12 @@
2 2
3 # Copyright (c) 2019-2020 Jay Berkenbilt and Kurt Pfeifle 3 # Copyright (c) 2019-2020 Jay Berkenbilt and Kurt Pfeifle
4 # 4 #
5 -# This script is mainly meant to build an 'AppImage' from GitHub  
6 -# sources of QPDF via Travis CI on an Ubuntu Trusty (14.04) LTS system  
7 -# (see https://appimage.org/).  
8 -#  
9 -# But it also allows Linux users to build such an AppImage on their  
10 -# own systems. Please read 'README.md' from the top level Git sources  
11 -# to see what preconditions you must meet to build QPDF in general.  
12 -# The same apply to build an AppImage. Then follow these three steps: 5 +# This script is used to build an 'AppImage' from GitHub sources of
  6 +# QPDF (see https://appimage.org/). It is used in CI, but it also
  7 +# allows Linux users to build such an AppImage on their own systems.
  8 +# Please read 'README.md' from the top level Git sources to see what
  9 +# preconditions you must meet to build QPDF in general. The same apply
  10 +# to build an AppImage. Then follow these three steps:
13 # 11 #
14 # 1. Clone Git sources: `git clone https://github.com/qpdf/qpdf.git git.qpdf` 12 # 1. Clone Git sources: `git clone https://github.com/qpdf/qpdf.git git.qpdf`
15 # 2. Change into git dir: `cd git.qpdf` 13 # 2. Change into git dir: `cd git.qpdf`
@@ -33,8 +31,8 @@ @@ -33,8 +31,8 @@
33 # 2. If you build the AppImage on a too recent Linux distribution, 31 # 2. If you build the AppImage on a too recent Linux distribution,
34 # it may only work on the exact distribution you build it on. For 32 # it may only work on the exact distribution you build it on. For
35 # an AppImage to work on a wide range of different distributions 33 # an AppImage to work on a wide range of different distributions
36 -# from the last 3-4 years if should be built on Ubuntu Trusty  
37 -# (14.04). 34 +# from the last 3-4 years if should be built on the oldest
  35 +# supported Ubuntu LTS release.
38 36
39 set -ex 37 set -ex
40 38
@@ -172,7 +170,7 @@ else @@ -172,7 +170,7 @@ else
172 set +x 170 set +x
173 echo "" 171 echo ""
174 echo " Running 'appimagetool' with '-n' parameter..." 172 echo " Running 'appimagetool' with '-n' parameter..."
175 - echo " Reason: this does not seem to be a Travis CI build running on" 173 + echo " Reason: this does not seem to be a build running on"
176 echo " Ubuntu Trusty 14.04." 174 echo " Ubuntu Trusty 14.04."
177 echo " '-n' disables checking of AppStream data by the 'appstreamcli'" 175 echo " '-n' disables checking of AppStream data by the 'appstreamcli'"
178 echo " utility since post-Trusty versions have incompatible changes." 176 echo " utility since post-Trusty versions have incompatible changes."
@@ -183,13 +181,8 @@ fi @@ -183,13 +181,8 @@ fi
183 # Set up a version string to include in the AppImage name 181 # Set up a version string to include in the AppImage name
184 MAJOR_QPDF_VERSION=$( ./appdir/usr/bin/qpdf --version | grep "qpdf version" | awk '{print $3}' ) 182 MAJOR_QPDF_VERSION=$( ./appdir/usr/bin/qpdf --version | grep "qpdf version" | awk '{print $3}' )
185 declare -a UPDATE_INFO 183 declare -a UPDATE_INFO
186 -if [ "$TRAVIS_JOB_NUMBER" != "" ]; then  
187 - VERSION=${MAJOR_QPDF_VERSION}-continuous-${TRAVIS_JOB_NUMBER}-$(date "+%Y-%m-%d")-git.$(git rev-parse --short HEAD)  
188 - # No update info supported for travis builds for now.  
189 -else  
190 - VERSION=${MAJOR_QPDF_VERSION}  
191 - UPDATE_INFO=(-u "gh-releases-zsync|qpdf|qpdf|latest|qpdf-*x86_64.AppImage.zsync")  
192 -fi 184 +VERSION=${MAJOR_QPDF_VERSION}
  185 +UPDATE_INFO=(-u "gh-releases-zsync|qpdf|qpdf|latest|qpdf-*x86_64.AppImage.zsync")
193 186
194 # Remove the default AppRun/symlink and use our own custom AppRun script 187 # Remove the default AppRun/symlink and use our own custom AppRun script
195 rm appdir/AppRun; cp $top/appimage/AppRun appdir; chmod a+x appdir/AppRun 188 rm appdir/AppRun; cp $top/appimage/AppRun appdir; chmod a+x appdir/AppRun