|
2 | 2 |
|
3 | 3 | ccache -s |
4 | 4 |
|
| 5 | +MISSES=$(ccache -s | grep "cache miss" | grep -Po "\d+") |
| 6 | +echo "MISSES: $MISSES" |
| 7 | + |
| 8 | +if [ x"$MISSES" == x"0" ]; then |
| 9 | + echo "No cache misses detected, skipping upload" |
| 10 | + exit 0 |
| 11 | +fi |
| 12 | + |
5 | 13 | if [ "$IRON_TOKEN" ]; then |
6 | 14 | rm -rf ~/ccache.7z |
7 | 15 |
|
8 | 16 | tar cf - $HOME/.ccache \ |
9 | | - | 7za a -si ~/ccache.7z |
10 | | - |
11 | | - # Caching the cython files could be be made to work. |
12 | | - # There's a timestamp issue to be handled (http://stackoverflow.com/questions/1964470) |
13 | | - # but you could get the build to reuse them. |
14 | | - # However, there's a race condition between travis cythonizing |
15 | | - # and a new commit being made on a GH server somewhere. |
16 | | - # and there's convenient causal link between the two we can |
17 | | - # take advantage of. |
18 | | - # Let's just wait another 60 seconds. |
19 | | - # "$TRAVIS_BUILD_DIR"/pandas/{index,algos,lib,tslib,parser,hashtable}.c \ |
20 | | - # "$TRAVIS_BUILD_DIR"/pandas/src/{sparse,testing}.c \ |
21 | | - # "$TRAVIS_BUILD_DIR"/pandas/msgpack.cpp \ |
22 | | - # | 7za a -si ~/ccache.7z |
| 17 | + "$TRAVIS_BUILD_DIR"/pandas/{index,algos,lib,tslib,parser,hashtable}.c \ |
| 18 | + "$TRAVIS_BUILD_DIR"/pandas/src/{sparse,testing}.c \ |
| 19 | + "$TRAVIS_BUILD_DIR"/pandas/msgpack.cpp \ |
| 20 | + | 7za a -si ~/ccache.7z |
23 | 21 |
|
24 | 22 | split -b 500000 -d ~/ccache.7z ~/ccache. |
25 | 23 |
|
|
0 commit comments