-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3540 from fritzing/develop
Merge versioning and travis build config
- Loading branch information
Showing
19 changed files
with
142 additions
and
93 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
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
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/bash | ||
set -xe | ||
|
||
docker run --privileged -v "$(pwd):/home/conan/fritzing" -w /home/conan/fritzing fritzing/build:"$1" docker/xvfb-release-helper.sh "$2" | ||
docker run --privileged -v "$(pwd):/home/conan/fritzing" \ | ||
-e TRAVIS="${TRAVIS:-}" \ | ||
-e TRAVIS_BUILD_NUMBER="${TRAVIS_BUILD_NUMBER:-}" \ | ||
-w /home/conan/fritzing fritzing/build:"$1" docker/xvfb-release-helper.sh "$2" |
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
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,32 @@ | ||
# Need to discard STDERR so get path to NULL device | ||
win32 { | ||
NULL_DEVICE = NUL # Windows doesn't have /dev/null but has NUL | ||
} else { | ||
NULL_DEVICE = /dev/null | ||
} | ||
|
||
# Need to call git with manually specified paths to repository | ||
BASE_GIT_COMMAND = git --git-dir $$PWD/../.git --work-tree $$PWD/.. | ||
|
||
$$(TRAVIS) { | ||
# When running on travis, the tag is created *after* the build was successful. | ||
# So we can not use 'git describe', but we generate a string that should look exactly | ||
# like what git describe would deliver | ||
GIT_VERSION = CD-$$(TRAVIS_BUILD_NUMBER)-0-$$system($$BASE_GIT_COMMAND rev-parse --short HEAD) | ||
} else { | ||
GIT_VERSION = $$system($$BASE_GIT_COMMAND describe --tags 2> $$NULL_DEVICE) | ||
} | ||
|
||
GIT_DATE = $$system($$BASE_GIT_COMMAND show --no-patch --no-notes --pretty='%cd' HEAD --date=iso-strict 2> $$NULL_DEVICE) | ||
|
||
# Here we process the build date and time | ||
win32 { | ||
# Try to squeeze something ISO-8601-ish out of windows | ||
BUILD_DATE = $$system( powershell (Get-Date -Format "o") ) | ||
} else { | ||
BUILD_DATE = $$system( date --iso-8601=seconds ) | ||
} | ||
|
||
DEFINES += GIT_VERSION=\\\"$$GIT_VERSION\\\" | ||
DEFINES += GIT_DATE=\\\"$$GIT_DATE\\\" | ||
DEFINES += BUILD_DATE=\\\"$$BUILD_DATE\\\" |
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<splash sliceDelaySeconds="0" > | ||
<item id="progress" x="0" y="224" /> | ||
<item id="fritzingText" x="5" y="222" width="516" height="20" color="#eaf4ed" /> | ||
<item id="versionText" x="0" y="222" width="549" height="20" color="#eaf4ed" /> | ||
<item id="fritzingText" x="5" y="224" width="516" height="20" color="#eaf4ed" /> | ||
<item id="versionText" x="0" y="224" width="563" height="20" color="#eaf4ed" /> | ||
<item id="logoBar" x="0" y="157" /> | ||
<item id="slice" x="0" y="0" /> | ||
</splash> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.