-
Notifications
You must be signed in to change notification settings - Fork 107
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
1 parent
0ebef45
commit bb0b6cf
Showing
9 changed files
with
97 additions
and
13 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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
output/ | ||
samples/PhotoFrame/\.vscode/ | ||
samples/PhotoFrame/\.idea/ | ||
build/Qt/ | ||
build/qtci/ |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
$SCRIPT_DIR/docker/build-linux-ci.sh | ||
|
||
docker run -it --rm \ | ||
-v $SCRIPT_DIR/../:/work \ | ||
-w /work \ | ||
-e LD_LIBRARY_PATH=/work/src/native/output \ | ||
-e QT_QPA_PLATFORM=offscreen \ | ||
net-core-qml-linux-ci \ | ||
./build.sh ci |
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,36 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
QT_DIR=$SCRIPT_DIR/Qt | ||
|
||
if [ ! -e $QT_DIR ]; then | ||
|
||
# Checkout some helper scripts for installing Qt in ci. | ||
if [ ! -e $SCRIPT_DIR/qtci ]; then | ||
git clone https://github.com/benlau/qtci $SCRIPT_DIR/qtci | ||
fi | ||
export PATH=$PATH:$SCRIPT_DIR/qtci/bin:$SCRIPT_DIR/qtci/recipes | ||
|
||
DOWNLOAD_URL="https://download.qt.io/archive/qt/5.11/5.11.1/qt-opensource-mac-x64-5.11.1.dmg" | ||
INSTALLER=`basename $DOWNLOAD_URL` | ||
INSTALLER_NAME=${INSTALLER%.*} | ||
APPFILE=/Volumes/${INSTALLER_NAME}/${INSTALLER_NAME}.app/Contents/MacOS/${INSTALLER_NAME} | ||
|
||
if [ ! -e ${INSTALLER} ]; then | ||
echo "Downloading ${DOWNLOAD_URL}..." | ||
wget -c $DOWNLOAD_URL > /dev/null 2>&1 | ||
fi | ||
|
||
echo "Mounting and extracting Qt..." | ||
hdiutil mount ${INSTALLER} | ||
export QT_CI_PACKAGES=qt.qt5.5111.qtvirtualkeyboard.clang_64,qt.qt5.5111.clang_64 | ||
extract-qt-installer $APPFILE $QT_DIR | ||
|
||
fi | ||
|
||
export PATH=$PATH:$QT_DIR/5.11.1/clang_64/bin | ||
export DYLD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/src/native/output | ||
|
||
# We need to source this script, so that DYLD_LIBRARY_PATH get's passed. | ||
. $TRAVIS_BUILD_DIR/build.sh ci |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ mkdir -p $BUILD_DIR | |
cd $BUILD_DIR | ||
PREFIX=$OUTPUT_DIR qmake ../QmlNet | ||
make | ||
make install | ||
make install |