-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Javier Serrano Polo
committed
Oct 20, 2018
1 parent
81dc429
commit 76974cc
Showing
5 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
sudo apt-get update -qq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |