File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ install:
6767 - echo "install"
6868 - ci/prep_ccache.sh
6969 - ci/install.sh
70+ - ci/submit_ccache.sh
7071
7172before_script :
7273 - mysql -e 'create database pandas_nosetest;'
@@ -79,4 +80,3 @@ after_script:
7980 - ci/print_versions.py
8081 - ci/print_skipped.py /tmp/nosetests.xml
8182 - ci/after_script.sh
82- - ci/submit_ccache.sh
Original file line number Diff line number Diff line change 9494time python setup.py sdist
9595pip uninstall cython -y
9696
97- cat pandas/version.py
98-
9997export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
10098which gcc
101- ccache -z # reset stats
99+ ccache -z
102100time pip install $( find dist | grep gz | head -n 1)
103101
104102true
Original file line number Diff line number Diff line change 77import time
88import json
99import base64
10-
10+ from hashlib import sha1
1111from iron_cache import *
1212
13- key = 'KEY' + os .environ .get ('JOB_NAME' ,'' )+ "."
13+ key = 'KEY.%s.%s' % (os .environ .get ('TRAVIS_REPO_SLUG' ,'unk' ),
14+ os .environ .get ('JOB_NAME' ,'unk' ))
15+ if sys .version_info [0 ] > 2 :
16+ key = sha1 (bytes (key ,encoding = 'utf8' )).hexdigest ()[:8 ]+ '.'
17+ else :
18+ key = sha1 (key ).hexdigest ()[:8 ]+ '.'
1419
1520b = b''
1621cache = IronCache ()
Original file line number Diff line number Diff line change 77import time
88import json
99import base64
10-
10+ from hashlib import sha1
1111from iron_cache import *
1212
13- key = 'KEY' + os .environ .get ('JOB_NAME' ,'' )+ "."
13+ key = 'KEY.%s.%s' % (os .environ .get ('TRAVIS_REPO_SLUG' ,'unk' ),
14+ os .environ .get ('JOB_NAME' ,'unk' ))
15+ if sys .version_info [0 ] > 2 :
16+ key = sha1 (bytes (key ,encoding = 'utf8' )).hexdigest ()[:8 ]+ '.'
17+ else :
18+ key = sha1 (key ).hexdigest ()[:8 ]+ '.'
19+
1420os .chdir (os .environ .get ('HOME' ))
1521
1622cache = IronCache ()
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ if [ "$IRON_TOKEN" ]; then
88
99 python ci/ironcache/get.py
1010 ccache -C
11- ccache -M 120M
1211
1312 if [ -f ~ /ccache.7z ]; then
1413 echo " Cache retrieved"
You can’t perform that action at this time.
0 commit comments