From 022cd0dbb9d1ff1a840c87ecb51a9b81dc390d6a Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Fri, 18 Dec 2015 19:30:16 +0100 Subject: [PATCH] Cache dependencies --- .travis.yml | 7 +++++ ci/travis/before_install.sh | 53 ++++++++++++++++++++----------------- 2 files changed, 35 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index c0f02475..6161593c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,12 @@ os: osx +env: + - PYENV_PYTHON_VERSION=3.5.0 before_install: # Install and configure pyenv - ci/travis/before_install.sh install: + - pyenv activate sakia-env - pip install coveralls cx_Freeze - pip install -r requirements.txt - python gen_resources.py @@ -16,3 +19,7 @@ script: after_success: - coverage -rm - coveralls + +cache: + directories: + - $HOME/.pyenv \ No newline at end of file diff --git a/ci/travis/before_install.sh b/ci/travis/before_install.sh index 429e1599..d315b40a 100755 --- a/ci/travis/before_install.sh +++ b/ci/travis/before_install.sh @@ -9,29 +9,32 @@ brew install pyenv-virtualenv eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" -env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.5.0 - -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 --confirm-license -make && make install -pyenv rehash - -cd $HOME/sakia \ No newline at end of file +if [ ] then + env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYENV_PYTHON_VERSION + + pyenv shell $PYENV_PYTHON_VERSION + 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 --confirm-license + make && make install + pyenv rehash + + cd $HOME/sakia +fi \ No newline at end of file -- GitLab