[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: Use travis.d.n's .travis.yml



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 008be1afbdd2f13d3dd7c215ec1caec852b267bf
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Apr 19 10:26:31 2017 +0000

    Use travis.d.n's .travis.yml
    
    I don't particularly like the "wget | sh" thingy (especially over raw
    http).  However, travis's own offering is rather unstable and far
    behind our supported versions.
    
    On the positive side, now we can run our test suite in unstable +
    testing.  Both as build-time and the autopkgtests.  I couldn't get
    stable + stable-backports to work though with a few attempts, so I
    left it commented out.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 .travis.yml | 72 +++++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 49 insertions(+), 23 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 54d250b..c087383 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,27 +1,53 @@
-language: c
 sudo: required
-dist: trusty
-before_install:
-    # maybe add php ppa to provide sufficient pkg-php-tools
-    # - sudo add-apt-repository -y ppa:ondrej/php5
-    # update package list
-    - sudo apt-get update -qq
+language: generic
 
-install:
-    # install build dependencies
-    # - sudo apt-get install -qq --no-install-recommends aspell aspell-en binutils bzip2 cdbs debhelper default-jdk diffstat docbook-utils docbook-xml fakeroot file gettext hardening-includes intltool-debian javahelper libapt-pkg-perl libarchive-zip-perl libclass-accessor-perl libclone-perl libdpkg-perl libdigest-sha-perl libemail-valid-perl libfile-basedir-perl libhtml-parser-perl libipc-run-perl liblist-moreutils-perl libparse-debianchangelog-perl libtest-minimumversion-perl libtest-pe [...]
-    # install packages needed for mk-build-deps
-    - sudo apt-get install -y -qq --no-install-recommends devscripts equivs
-    # pull build deps from debian/control
-    - yes y | head -n1 | sudo mk-build-deps -ir
-    # remove packages needed for mk-build-deps
-    - sudo apt-get purge -y -qq equivs
-    - sudo apt-get autoremove -y -qq
+matrix:
+  include:
+    - env:
+        TRAVIS_DEBIAN_DISTRIBUTION: unstable
+        TRAVIS_DEBIAN_AUTOPKGTEST: false
+        DEB_BUILD_OPTIONS: parallel=4
+      services:
+        - docker
+    - env:
+        TRAVIS_DEBIAN_DISTRIBUTION: testing
+        TRAVIS_DEBIAN_AUTOPKGTEST: false
+        DEB_BUILD_OPTIONS: parallel=4
+      services:
+        - docker
+# For stable + stable-backports. Unfortunately, it travis.d.n's method
+# does not seem to support installing our B-D correctly.
+#    - env:
+#        TRAVIS_DEBIAN_DISTRIBUTION: stable
+#        TRAVIS_DEBIAN_BACKPORTS: true
+#        TRAVIS_DEBIAN_AUTOPKGTEST: false
+#      services:
+#        - docker
+    - env:
+        TRAVIS_DEBIAN_DISTRIBUTION: unstable
+        TRAVIS_DEBIAN_AUTOPKGTEST: true
+        DEB_BUILD_OPTIONS: nocheck
+      services:
+        - docker
+    - env:
+        TRAVIS_DEBIAN_DISTRIBUTION: testing
+        TRAVIS_DEBIAN_AUTOPKGTEST: true
+        DEB_BUILD_OPTIONS: nocheck
+      services:
+        - docker
+# For stable + stable-backports. Unfortunately, it travis.d.n's method
+# does not seem to support installing our B-D correctly.
+#    - env:
+#        TRAVIS_DEBIAN_DISTRIBUTION: stable
+#        TRAVIS_DEBIAN_BACKPORTS: true
+#        TRAVIS_DEBIAN_AUTOPKGTEST: true
+#        DEB_BUILD_OPTIONS: nocheck
+#      services:
+#        - docker
 
 script:
-    # build the debian package
-    - debuild -uc -us
-    # run lintian after build
-    - frontend/lintian -EviIL +pedantic --show-overrides || [ "$?" = 1 ]
-#notifications:
-#  email: false
+  - wget -O- http://travis.debian.net/script.sh | sh -
+
+branches:
+  except:
+    - /^debian\/\d/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: