File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ if [ "$IRON_TOKEN" ]; then
6
6
pip install -I --allow-external --allow-insecure git+https://github.com/iron-io/iron_cache_python.git@8a451c7d7e4d16e0c3bedffd0f280d5d9bd4fe59#egg=iron_cache
7
7
8
8
9
+ curdir=$( pwd)
9
10
python ci/ironcache/get.py
10
11
ccache -C
11
12
@@ -22,14 +23,23 @@ if [ "$IRON_TOKEN" ]; then
22
23
fi
23
24
24
25
# did the last commit change cython files?
25
- git diff HEAD~5 | grep diff | grep -P " pyx|pxd "
26
+ cd $curdir
26
27
27
- if [ " $? " != " 0" ]; then
28
+ echo " diff from HEAD~5"
29
+ git diff HEAD~5 --numstat
30
+
31
+ retval=$( git diff HEAD~5 --numstat | grep -P " pyx|pxd" | wc -l)
32
+ echo " number of cython files changed: $retval "
33
+
34
+ if [ $retval -eq 0 ]
35
+ then
28
36
# nope, reuse cython files
29
37
echo " Will reuse cached cython file"
30
38
touch " $TRAVIS_BUILD_DIR " /pandas/* .c
31
39
touch " $TRAVIS_BUILD_DIR " /pandas/src/* .c
32
40
touch " $TRAVIS_BUILD_DIR " /pandas/* .cpp
41
+ else
42
+ echo " Rebuilding cythonized files"
33
43
fi
34
44
fi
35
45
You can’t perform that action at this time.
0 commit comments