Skip to content

Commit

Permalink
Add Travis CI for Debian sid
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Serrano Polo committed Oct 20, 2018
1 parent 81dc429 commit 76974cc
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: cpp
compiler: gcc
dist: trusty
sudo: required
matrix:
include:
# - env: TARGET_OS=
- env: TARGET_OS=debian-sid
# - env: TARGET_OS=win32
# - env: TARGET_OS=win64
# - os: osx
cache:
directories:
- $HOME/pbuilder-bases
before_install:
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.before_install"
install:
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.install"
script:
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.script"
before_deploy:
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.before_deploy"
deploy:
provider: releases
api_key:
secure: BovT61Yn03S5N5H1rULqGn/uy1ZU4H1QrvpA5eOiEPo0fhwGPRRSt6Br04gO/ccxY5zq2jBNG69apKCuBwfDFZNwvMK79s++Wvn6NEv4ME5cn9LKUAmS4gFilSiAz5GEUos2IzqPj0PDpaUrHJmkDS0B81HB5EIEUR83qKKwreQ149RU7kwxZ0N4YvQ8dsJ03TQ7FY9e0sF78kOOpTLsZ2Di0H2H1lh2kkkf35x5ebezAcMyYSGv97sfKVm8CJ17VQ+io3t6P16vVjKH2qjQuzFEfygNrjUbmBLS04fcLKq8xotS/Jpm25KobKb9C8+a7dHmNZnR6e+optLy62nYcuFwOUKw19R8gBvIRwibNSbqeXUIFu1PQP0mg0KCPH54ywUKyvarpkWmTewcRzH1L6Glw0PcGLebXjvwjlkqM6LWfXq6u2JjHb6bR8PLQ5So379ZZpeMsYBDgDHKcyMMGNsEDM6/c414/J/oDyni2O6dszCPBuMbL7BuFeinSsMFWKjVbssL6GK5d2E9WW4zcSpzjsdxdemsAz+46CO+IOhbzRLOXHaY5MRTsp7cLG1WV1JrypB7hq093BKyhg7bNZq7mvb+GUxo7cegxiQRCd07f8RoKyz/eUZuONeoFT32ygyNoPyzxbMsIo0Ql7I1wDMebvEu8LooRZpqo3gwzyo=
file_glob: true
file:
- project-${TRAVIS_TAG:1}-*.run
- project-${TRAVIS_TAG:1}-*.exe
- project-${TRAVIS_TAG:1}-*.dmg
- embedded-libs-${TRAVIS_TAG:1}-linux-source.tar.xz
- embedded-libs-${TRAVIS_TAG:1}-windows-source.tar.xz
skip_cleanup: true
on:
tags: true
repo: jasp00/zbar
1 change: 1 addition & 0 deletions travis/linux.debian-sid.before_deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/sh
2 changes: 2 additions & 0 deletions travis/linux.debian-sid.before_install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
sudo apt-get update -qq
4 changes: 4 additions & 0 deletions travis/linux.debian-sid.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
sudo apt-get install -y \
debian-archive-keyring \
pbuilder
22 changes: 22 additions & 0 deletions travis/linux.debian-sid.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
set -e

BASETGZ="$HOME/pbuilder-bases/debian-sid-amd64.tgz"
MIRROR=http://cdn-fastly.deb.debian.org/debian
KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg

if [ ! -e "$BASETGZ" ]
then
mkdir -p "$HOME/pbuilder-bases"
sudo pbuilder --create --basetgz "$BASETGZ" --mirror $MIRROR \
--distribution sid --architecture amd64 \
--debootstrapopts --variant=buildd \
--debootstrapopts --keyring=$KEYRING
else
sudo pbuilder --update --basetgz "$BASETGZ"
fi

DIR="$PWD"
cd ..
dpkg-source -b "$DIR"
sudo pbuilder --build --basetgz "$BASETGZ" *.dsc

0 comments on commit 76974cc

Please sign in to comment.