Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
83dc1446
Commit
83dc1446
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Try to build on travis for osx
parent
f6dacb3a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+5
-54
5 additions, 54 deletions
.travis.yml
ci/travis/before_install.sh
+33
-0
33 additions, 0 deletions
ci/travis/before_install.sh
ci/travis/build.sh
+0
-0
0 additions, 0 deletions
ci/travis/build.sh
with
38 additions
and
54 deletions
.travis.yml
+
5
−
54
View file @
83dc1446
os
:
-
osx
sudo
:
false
language
:
python
python
:
# We don't actually use the Travis Python, but this keeps it organized.
-
"
3.4"
addons
:
apt
:
packages
:
-
libxcb1
-
libxcb1-dev
-
libx11-xcb1
-
libx11-xcb-dev
-
libxcb-keysyms1
-
libxcb-keysyms1-dev
-
libxcb-image0
-
libxcb-image0-dev
-
libxcb-shm0
-
libxcb-shm0-dev
-
libxcb-icccm4
-
libxcb-icccm4-dev
-
libxcb-sync0
-
libxcb-sync0-dev
-
libxcb-xfixes0-dev
-
libxrender-dev
-
libxcb-shape0-dev
-
libxcb-randr0-dev
-
libxcb-render-util0
-
libxcb-render-util0-dev
-
libxcb-glx0-dev
-
libgl1-mesa-dri
-
libegl1-mesa
-
libpcre3-dev
before_install
:
# Update
-
pwd
# Install and configure conda
-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
-
bash miniconda.sh -b -p $HOME/miniconda
-
export PATH="$HOME/miniconda/bin:$PATH"
-
hash -r
-
conda config --set always_yes yes --set changeps1 no
-
conda config --add channels inso/channel/sakia
-
conda config --add channels pyzo
-
conda update -q conda
# Useful for debugging any issues with conda
-
conda info -a
# Install and configure pyenv
-
ci/travis/before_install.sh
install
:
-
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cx_freeze pyqt5 libpng=1.5.13 libsodium=1.0.3
-
source activate test-environment
-
ldd $HOME/miniconda/envs/test-environment/lib/qt5/plugins/platforms/*.so
-
pip install coveralls
-
pip install coveralls cx_Freeze
-
pip install -r requirements.txt
-
python gen_resources.py
-
python gen_translations.py
-
python setup.py build
before_script
:
# screen must be 24bpp otherwise pyqt5 crashes
# see: https://github.com/pytest-dev/pytest-qt/issues/35
-
export XVFBARGS="-screen 0 1280x1024x24"
-
export DISPLAY=:99.0
-
sh -e /etc/init.d/xvfb start
-
sleep
3
script
:
-
export QT_QPA_PLATFORM_PLUGIN_PATH=$HOME/miniconda/envs/test-environment/lib/qt5/plugins/platforms;
-
export QT_PLUGIN_PATH=$HOME/miniconda/envs/test-environment/lib/qt5/plugins
-
export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
-
coverage run --source=sakia.core,sakia.gui,sakia.models run_tests.py
after_success
:
...
...
This diff is collapsed.
Click to expand it.
ci/travis/before_install.sh
0 → 100644
+
33
−
0
View file @
83dc1446
brew
install
wget
brew
install
libsodium
## Ensure your brew QT version is up to date. (brew install qt -> qt 4.8)
brew
install
qt5
brew
link
--force
qt5
env
PYTHON_CONFIGURE_OPTS
=
"--enable-framework"
pyenv
install
$TRAVIS_PYTHON_VERSION
pyenv shell 3.5.0
pyenv virtualenv sakia-env
cd
$HOME
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.17/sip-4.17.tar.gz
tar
xzf sip-4.17.tar.gz
cd
sip-4.17/
pyenv activate sakia-env
python configure.py
make
&&
make
install
pyenv rehash
cd
$HOME
wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/PyQt-gpl-5.5.1.tar.gz
tar
xzf PyQt-gpl-5.5.1.tar.gz
cd
PyQt-gpl-5.5.1/
pyenv activate sakia-env
python configure.py
--verbose
make
&&
make
install
pyenv rehash
cd
$HOME
/sakia
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ci/travis/build.sh
0 → 100644
+
0
−
0
View file @
83dc1446
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment