Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ideascube
ARCHIVED Kiwix Hotspot
Commits
e2538a20
Commit
e2538a20
authored
Feb 25, 2019
by
rgaudin
Browse files
updated linux build (travis) to python3.7 on xenial with upstream pyinstaller
parent
fc5ae5c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
e2538a20
...
...
@@ -89,27 +89,25 @@ matrix:
-
if [ "$TRAVIS_EVENT_TYPE" != "cron" ] && [ $PIBOX_RELEASE ]; then mkdir -p releases/$PIBOX_RELEASE; cp kiwix-hotspot-macos.dmg releases/$PIBOX_RELEASE/; scp -r -v -o StrictHostKeyChecking=no -i pibox_installer_ci_rsa releases/$PIBOX_RELEASE ci@download.kiwix.org:/data/download/release/kiwix-hotspot/; fi
-
os
:
linux
language
:
python
python
:
3.
4
dist
:
trusty
language
:
generic
python
:
3.
7.1
# just a label
dist
:
xenial
sudo
:
required
virtualenv
:
system_site_packages
:
true
addons
:
apt
:
packages
:
# Some package may not be required
python3-gi
python3-gi-cairo
python3-cairo
libgirepository1.0-dev
gcc
libcairo2-dev
pkg-config
python3-dev
gir1.2-gtk-3.0
libdbus-1-dev
libdbus-glib-1-dev
libffi-dev
build-essential
libssl-dev
python-dev
python3-dev
libgdk-pixbuf2.0-dev
script
:
-
PIBOX_RELEASE=$(echo $TRAVIS_TAG | grep -x 'v[[:digit:]]\+.[[:digit:]]\+\(.[[:digit:]]\+\)*\(-rc[[:digit:]]\+\)\?') ||
true
...
...
@@ -118,6 +116,17 @@ matrix:
-
if [ $PIBOX_RELEASE ]; then PIBOX_VERSION=${PIBOX_RELEASE:1}; elif [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then PIBOX_VERSION="nightly ($SCOMMIT)"; else PIBOX_VERSION="CI ($SCOMMIT)"; fi
-
sed -i.bak "s/VERSION = \"devel\"/VERSION = \"${PIBOX_VERSION}\"/g" kiwix-hotspot/data.py
# python preps
-
sudo add-apt-repository -y ppa:deadsnakes/ppa
-
sudo apt-get update -y
-
sudo apt-get install -y python3.7 python3.7-dev
-
virtualenv -p /usr/bin/python3.7 hotspot-env
-
source hotspot-env/bin/activate
# pygobjects
-
pip3 install pycairo
-
pip3 install PyGObject
# update XZ (trusty version -5.0.5 is too old)
-
wget http://mirror.download.kiwix.org/dev/xz-5.2.4.tar.gz
-
tar xf xz-5.2.4.tar.gz
...
...
@@ -145,10 +154,9 @@ matrix:
-
pip3 install -r requirements-linux.txt
# Install and run pyinstaller
# note: we temporary use a fork that resolves pygobject issues
-
pip3 install https://github.com/thiolliere/pyinstaller/archive/develop.zip
-
pip3 install -U pyinstaller
-
pyinstaller --log-level=DEBUG kiwix-hotspot-linux.spec
-
cat build/kiwix-hotspot-linux/warnkiwix-hotspot-linux.txt
-
cat build/kiwix-hotspot-linux/warnkiwix-hotspot-linux.txt
||
true
# Archive
-
cd dist
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment