Skip to content
Snippets Groups Projects
Commit 767bd54f authored by inso's avatar inso
Browse files

Update apt

parent 1ab5d993
No related branches found
No related tags found
No related merge requests found
sudo: true
# fully specify builds, include can't dynamically expand matrix entries
# relative order of sudo and env is important so that addons: is recognized
- os: linux
dist: trusty
sudo: required
env: TARGET="linux"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
matrix: matrix:
include: include:
- os: osx - os: osx
- os: linux - os: linux
dist: trusty dist: trusty
- os: linux
sudo: false
cache:
directories:
- ~/.pyenv
env: env:
- PYENV_PYTHON_VERSION=3.5.0 - PYENV_PYTHON_VERSION=3.5.0
......
...@@ -10,6 +10,7 @@ then ...@@ -10,6 +10,7 @@ then
brew install pyenv-virtualenv brew install pyenv-virtualenv
elif [ $TRAVIS_OS_NAME == "linux" ] elif [ $TRAVIS_OS_NAME == "linux" ]
then then
sudo apt-get update
sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 \ sudo apt-get install 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-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-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0 \
...@@ -27,7 +28,8 @@ pyenv activate sakia-env ...@@ -27,7 +28,8 @@ pyenv activate sakia-env
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
echo "Sakia env cache cleared, rebuilding it..." echo "Sakia env cache cleared, rebuilding it..."
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYENV_PYTHON_VERSION [ $TRAVIS_OS_NAME == "osx" ] && env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYENV_PYTHON_VERSION
[ $TRAVIS_OS_NAME == "linux" ] && PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install $PYENV_PYTHON_VERSION
pyenv shell $PYENV_PYTHON_VERSION pyenv shell $PYENV_PYTHON_VERSION
pyenv virtualenv sakia-env pyenv virtualenv sakia-env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment