File tree 5 files changed +17
-9
lines changed
5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ install:
67
67
- echo "install"
68
68
- ci/prep_ccache.sh
69
69
- ci/install.sh
70
+ - ci/submit_ccache.sh
70
71
71
72
before_script :
72
73
- mysql -e 'create database pandas_nosetest;'
@@ -79,4 +80,3 @@ after_script:
79
80
- ci/print_versions.py
80
81
- ci/print_skipped.py /tmp/nosetests.xml
81
82
- ci/after_script.sh
82
- - ci/submit_ccache.sh
Original file line number Diff line number Diff line change 94
94
time python setup.py sdist
95
95
pip uninstall cython -y
96
96
97
- cat pandas/version.py
98
-
99
97
export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
100
98
which gcc
101
- ccache -z # reset stats
99
+ ccache -z
102
100
time pip install $( find dist | grep gz | head -n 1)
103
101
104
102
true
Original file line number Diff line number Diff line change 7
7
import time
8
8
import json
9
9
import base64
10
-
10
+ from hashlib import sha1
11
11
from iron_cache import *
12
12
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 ]+ '.'
14
19
15
20
b = b''
16
21
cache = IronCache ()
Original file line number Diff line number Diff line change 7
7
import time
8
8
import json
9
9
import base64
10
-
10
+ from hashlib import sha1
11
11
from iron_cache import *
12
12
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
+
14
20
os .chdir (os .environ .get ('HOME' ))
15
21
16
22
cache = IronCache ()
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ if [ "$IRON_TOKEN" ]; then
8
8
9
9
python ci/ironcache/get.py
10
10
ccache -C
11
- ccache -M 120M
12
11
13
12
if [ -f ~ /ccache.7z ]; then
14
13
echo " Cache retrieved"
You can’t perform that action at this time.
0 commit comments