Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2017-02-02 14:36:11 +0300
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2017-02-02 17:23:20 +0300
commitb23cf466d4b5eb0e90eff297b1b5f2184c99ad8f (patch)
tree2d93a9e19d1adc955224b1a53cabc7571058ae2c /scripts
parent3a97d0c9d12011de5cc78f033560fb987036c658 (diff)
travis: export build folder on envs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-build.sh23
1 files changed, 12 insertions, 11 deletions
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh
index 8a0c53acd..44cb79cc7 100755
--- a/scripts/travis-build.sh
+++ b/scripts/travis-build.sh
@@ -52,13 +52,14 @@ if [ "$BUILD_TYPE" == "deb" ]; then
apt-get install -y devscripts equivs
elif [ "$TRAVIS_BUILD_STEP" == "install" ]; then
mk-build-deps -ir remmina
- apt-get install -y libspice-protocol-dev libspice-client-gtk-3.0-dev
+ if [ -n "$DEB_EXTRA_DEPS" ]; then
+ apt-get install -y $DEB_EXTRA_DEPS
+ fi
elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then
git clean -f
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_APPINDICATOR=OFF --build=build ..
- make VERBOSE=1
+ mkdir $BUILD_FOLDER
+ cmake -B$BUILD_FOLDER -H. $DEB_BUILD_OPTIONS
+ make VERBOSE=1 -C $BUILD_FOLDER
fi
elif [ "$BUILD_TYPE" == "snap" ]; then
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
@@ -76,12 +77,12 @@ elif [ "$BUILD_TYPE" == "snap" ]; then
docker_exec apt-get install cmake git-core snapcraft -y
elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then
git clean -f
- mkdir build
- docker_exec cmake -Bbuild -H. -DSNAP_BUILD_ONLY=ON
+ mkdir $BUILD_FOLDER
+ docker_exec cmake -B$BUILD_FOLDER -H. -DSNAP_BUILD_ONLY=ON
# Sometimes the arch isn't properly recognized by snapcraft
if [ -n "$ARCH" ]; then
- echo -e "architectures:\n - $ARCH" >> build/snap/snapcraft.yaml
+ echo -e "architectures:\n - $ARCH" >> $BUILD_FOLDER/snap/snapcraft.yaml
fi
make_target='snap'
@@ -89,11 +90,11 @@ elif [ "$BUILD_TYPE" == "snap" ]; then
make_target='snap-prime'
fi
- docker_exec make $make_target -C build
+ docker_exec make $make_target -C $BUILD_FOLDER
elif [ "$TRAVIS_BUILD_STEP" == "deploy-unstable" ]; then
- docker_exec make snap-push-$SNAP_UNSTABLE_CHANNEL -C build
+ docker_exec make snap-push-$SNAP_UNSTABLE_CHANNEL -C $BUILD_FOLDER
elif [ "$TRAVIS_BUILD_STEP" == "deploy-release" ]; then
- docker_exec make snap-push-$SNAP_RELEASE_CHANNEL -C build
+ docker_exec make snap-push-$SNAP_RELEASE_CHANNEL -C $BUILD_FOLDER
fi
else
echo 'No $BUILD_TYPE defined'