Skip to content

BLD: fix travis speedup #6227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from Feb 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ install:
- echo "install"
- ci/prep_ccache.sh
- ci/install.sh
- ci/submit_ccache.sh

before_script:
- mysql -e 'create database pandas_nosetest;'
Expand All @@ -79,4 +80,3 @@ after_script:
- ci/print_versions.py
- ci/print_skipped.py /tmp/nosetests.xml
- ci/after_script.sh
- ci/submit_ccache.sh
4 changes: 1 addition & 3 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ fi
time python setup.py sdist
pip uninstall cython -y

cat pandas/version.py

export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
which gcc
ccache -z # reset stats
ccache -z
time pip install $(find dist | grep gz | head -n 1)

true
9 changes: 7 additions & 2 deletions ci/ironcache/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
import time
import json
import base64

from hashlib import sha1
from iron_cache import *

key='KEY'+os.environ.get('JOB_NAME','')+"."
key='KEY.%s.%s' %(os.environ.get('TRAVIS_REPO_SLUG','unk'),
os.environ.get('JOB_NAME','unk'))
if sys.version_info[0] > 2:
key = sha1(bytes(key,encoding='utf8')).hexdigest()[:8]+'.'
else:
key = sha1(key).hexdigest()[:8]+'.'

b = b''
cache = IronCache()
Expand Down
10 changes: 8 additions & 2 deletions ci/ironcache/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
import time
import json
import base64

from hashlib import sha1
from iron_cache import *

key='KEY'+os.environ.get('JOB_NAME','')+"."
key='KEY.%s.%s' %(os.environ.get('TRAVIS_REPO_SLUG','unk'),
os.environ.get('JOB_NAME','unk'))
if sys.version_info[0] > 2:
key = sha1(bytes(key,encoding='utf8')).hexdigest()[:8]+'.'
else:
key = sha1(key).hexdigest()[:8]+'.'

os.chdir(os.environ.get('HOME'))

cache = IronCache()
Expand Down
1 change: 0 additions & 1 deletion ci/prep_ccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ if [ "$IRON_TOKEN" ]; then

python ci/ironcache/get.py
ccache -C
ccache -M 120M

if [ -f ~/ccache.7z ]; then
echo "Cache retrieved"
Expand Down