Retrieve python@2 cache from external build

This commit is contained in:
albertosottile 2018-03-04 20:29:11 +01:00
parent 041478a4a3
commit 4403570638
5 changed files with 38 additions and 3 deletions

View File

@ -10,18 +10,19 @@ script:
before_install:
- brew update
- brew install python@2
- travis/download-homebrew
- export PATH="/usr/local/opt/python@2/bin:$PATH"
- travis/download-python
- brew tap cartr/qt4
- brew tap-pin cartr/qt4
- brew install pyside
install:
#- export PATH=/usr/local/bin:$PATH
- export PATH="/usr/local/opt/python@2/bin:$PATH"
- export QT_PREFERRED_BINDING="PySide"
- pip2 install twisted appnope pyobjc py2app
before_deploy:
#- travis/cache-homebrew
- pip2 install dmgbuild
- mkdir dist_dmg
- mv resources/macos_vlc_install.command resources/.macos_vlc_install.command

6
travis/cache-homebrew Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
mkdir travis-cache
if [ ! -f homebrew-cache.tar.gz ]; then
tar czf travis-cache/homebrew-cache.tar.gz --directory /usr/local/Cellar pkg-config readline sqlite gdbm makedepend openssl python@2
fi

5
travis/cache-python Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
if [ ! -f python-cache.tar.gz ]; then
tar czf travis-cache/python-cache.tar.gz --directory /usr/local/lib/python2.7 site-packages
fi

13
travis/download-homebrew Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
curl -L "https://dl.bintray.com/alby128/Syncplay/homebrew-cache.tar.gz" -o homebrew-cache.tar.gz
if [ -f homebrew-cache.tar.gz ]; then
if ! tar tf homebrew-cache.tar.gz &>/dev/null; then
rm homebrew-cache.tar.gz
exit 0
fi
tar zxf homebrew-cache.tar.gz --directory /usr/local/Cellar
brew unlink pkg-config
brew link pkg-config
brew link --force readline sqlite gdbm makedepend python@2
fi

10
travis/download-python Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
curl -L "https://dl.bintray.com/alby128/Syncplay/python-cache.tar.gz" -o python-cache.tar.gz
if [ -f python-cache.tar.gz ]; then
if ! tar tf python-cache.tar.gz &>/dev/null; then
rm python-cache.tar.gz
exit 0
fi
tar zxf python-cache.tar.gz --directory /usr/local/lib/python2.7
fi