Skip to content

Commit

Permalink
Added a VENV option when building Tribler
Browse files Browse the repository at this point in the history
Jenkins by default uses sh to run its scripts. However, sh does not have the source command, which is needed to enter a virtual environment. Therefore, I added a VENV option to the build script (on Linux).
  • Loading branch information
devos50 committed Aug 26, 2020
1 parent ac6110d commit 18db4a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/debian/makedist_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ then
echo "Please run this script from project root as:\n./build/debian/makedist_debian.sh"
fi

if [ ! -z "$VENV" ]; then
echo "Setting venv to $VENV"
source $VENV/bin/activate
fi

rm -rf build/tribler
rm -rf dist/tribler
rm -rf build/debian/tribler/usr/share/tribler
Expand All @@ -34,4 +39,4 @@ if [ -x "$(command -v docker)" ]; then
cd build/debian && docker run -v "$PWD":/debian -w /debian triblertester/snap_builder:core18 /bin/bash ./build-snap.sh
else
cd build/debian && /bin/bash ./build-snap.sh
fi
fi

0 comments on commit 18db4a9

Please sign in to comment.