-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Debian sid build pass #4707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e8f866a
Add Debian sid build pass
b8d2d8f
Update file locations and copyright
67a411a
Use ccache
75e3267
Redirect within sudo
3cb11db
Work around a pbuilder bug which breaks ccache
PhysSong 23b7dd6
Debian: enable parallel builds
PhysSong 80776da
Travis: Debian: fix caching
PhysSong 5adb5b0
Fix shellcheck warnings
PhysSong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| 314ef4af137903dfb13e8c3ef1e6ea56cfdb23808d52ec4f5f50e288c73610c5 pbuilder_0.229.1_all.deb | ||
| fa82aa8ed3055c6f6330104deedf080b26778295e589426d4c4dd0f2c2a5defa debootstrap_1.0.95_all.deb |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,14 @@ | ||
| #!/usr/bin/env bash | ||
| mkdir build | ||
| cd build | ||
|
|
||
| if [ $QT5 ]; then | ||
| unset QTDIR QT_PLUGIN_PATH LD_LIBRARY_PATH | ||
| source /opt/qt59/bin/qt59-env.sh | ||
| fi | ||
|
|
||
| cmake -DUSE_WERROR=ON $CMAKE_FLAGS .. | ||
|
|
||
| make -j4 | ||
| make tests | ||
| ./tests/tests |
This file contains hidden or 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 hidden or 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,16 @@ | ||
| #!/bin/sh | ||
| set -e | ||
|
|
||
| sudo apt-get install -y \ | ||
| debian-archive-keyring \ | ||
| dpkg \ | ||
| pbuilder | ||
|
|
||
| # work around a pbuilder bug which breaks ccache | ||
| # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666525 | ||
| cd /tmp | ||
| wget http://archive.ubuntu.com/ubuntu/pool/main/p/pbuilder/pbuilder_0.229.1_all.deb | ||
| wget http://archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.95_all.deb | ||
| sha256sum -c "$TRAVIS_BUILD_DIR/.travis/debian_pkgs.sha256" | ||
| sudo dpkg -i pbuilder_0.229.1_all.deb debootstrap_1.0.95_all.deb | ||
| cd "$OLDPWD" |
This file contains hidden or 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,30 @@ | ||
| #!/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 [ -z "$TRAVIS_TAG" ] | ||
| then | ||
| sudo \ | ||
| sh -c "echo CCACHEDIR=$HOME/.ccache >> /etc/pbuilderrc" | ||
| fi | ||
|
|
||
| if [ ! -e "$BASETGZ.stamp" ] | ||
| then | ||
| mkdir -p "$HOME/pbuilder-bases" | ||
| sudo pbuilder --create --basetgz "$BASETGZ" --mirror $MIRROR \ | ||
| --distribution sid --architecture amd64 \ | ||
| --debootstrapopts --variant=buildd \ | ||
| --debootstrapopts --keyring=$KEYRING \ | ||
| --debootstrapopts --include=perl | ||
| touch "$BASETGZ.stamp" | ||
| else | ||
| sudo pbuilder --update --basetgz "$BASETGZ" | ||
| fi | ||
|
|
||
| DIR="$PWD" | ||
| cd .. | ||
| dpkg-source -b "$DIR" | ||
| env -i sudo pbuilder --build --debbuildopts "--jobs=auto" --basetgz "$BASETGZ" ./*.dsc |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
| mkdir build | ||
| cd build | ||
|
|
||
| export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON" | ||
| ../cmake/build_mingw32.sh | ||
|
|
||
| make -j4 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| #!/usr/bin/env bash | ||
| mkdir build | ||
| cd build | ||
|
|
||
| export CMAKE_OPTS="$CMAKE_FLAGS -DUSE_WERROR=ON" | ||
| ../cmake/build_mingw64.sh | ||
|
|
||
| make -j4 |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,14 @@ | ||
| #!/usr/bin/env bash | ||
| mkdir build | ||
| cd build | ||
|
|
||
| if [ $QT5 ]; then | ||
| # Workaround; No FindQt5.cmake module exists | ||
| export CMAKE_PREFIX_PATH="$(brew --prefix qt5)" | ||
| fi | ||
|
|
||
| cmake $CMAKE_FLAGS -DUSE_WERROR=OFF .. | ||
|
|
||
| make -j4 | ||
| make tests | ||
| ./tests/tests |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasp00 Isn't this supposed to be
$TARGET_OS, or I'm missing something?