1
1
#! /bin/bash
2
2
3
- # There are 2 distinct pieces that get zipped and cached
4
- # - The venv site-packages dir including the installed dependencies
5
- # - The pandas build artifacts, using the build cache support via
6
- # scripts/use_build_cache.py
7
- #
8
- # if the user opted in to use the cache and we're on a whitelisted fork
9
- # - if the server doesn't hold a cached version of venv/pandas build,
10
- # do things the slow way, and put the results on the cache server
11
- # for the next time.
12
- # - if the cache files are available, instal some necessaries via apt
13
- # (no compiling needed), then directly goto script and collect 200$.
14
- #
15
-
3
+ # edit the locale file if needed
16
4
function edit_init()
17
5
{
18
6
if [ -n " $LOCALE_OVERRIDE " ]; then
@@ -26,15 +14,18 @@ function edit_init()
26
14
fi
27
15
}
28
16
17
+ echo
29
18
echo " [install_travis]"
30
19
edit_init
31
20
32
21
home_dir=$( pwd)
33
- echo " [home_dir: $home_dir ]"
22
+ echo
23
+ echo " [home_dir]: $home_dir "
34
24
35
25
# install miniconda
36
26
MINICONDA_DIR=" $HOME /miniconda3"
37
27
28
+ echo
38
29
echo " [Using clean Miniconda install]"
39
30
40
31
if [ -d " $MINICONDA_DIR " ]; then
49
40
fi
50
41
time bash miniconda.sh -b -p " $MINICONDA_DIR " || exit 1
51
42
43
+ echo
52
44
echo " [show conda]"
53
45
which conda
54
46
47
+ echo
55
48
echo " [update conda]"
56
49
conda config --set ssl_verify false || exit 1
57
50
conda config --set always_yes true --set changeps1 false || exit 1
58
51
conda update -q conda
59
52
53
+ echo
60
54
echo " [add channels]"
61
55
# add the pandas channel to take priority
62
56
# to add extra packages
73
67
conda info -a || exit 1
74
68
75
69
# set the compiler cache to work
70
+ echo
76
71
if [ " $USE_CACHE " ] && [ " ${TRAVIS_OS_NAME} " == " linux" ]; then
77
72
echo " [Using ccache]"
78
73
export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
79
74
gcc=$( which gcc)
80
- echo " [gcc: $gcc ] "
75
+ echo " [gcc] : $gcc "
81
76
ccache=$( which ccache)
82
- echo " [ccache: $ccache ] "
77
+ echo " [ccache] : $ccache "
83
78
export CC=' ccache gcc'
84
79
elif [ " $USE_CACHE " ] && [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
85
80
echo " [Using ccache]"
86
81
time brew install ccache
87
82
export PATH=/usr/local/opt/ccache/libexec:$PATH
88
83
gcc=$( which gcc)
89
- echo " [gcc: $gcc ] "
84
+ echo " [gcc] : $gcc "
90
85
ccache=$( which ccache)
91
- echo " [ccache: $ccache ] "
86
+ echo " [ccache] : $ccache "
92
87
else
93
88
echo " [Not using ccache]"
94
89
fi
95
90
91
+ echo
96
92
echo " [create env]"
97
93
98
94
# may have installation instructions for this build
@@ -106,13 +102,15 @@ else
106
102
fi
107
103
108
104
# build deps
105
+ echo
109
106
echo " [build installs]"
110
107
REQ=" ci/requirements-${PYTHON_VERSION}${JOB_TAG} .build"
111
108
if [ -e ${REQ} ]; then
112
109
time conda install -n pandas --file=${REQ} || exit 1
113
110
fi
114
111
115
112
# may have addtl installation instructions for this build
113
+ echo
116
114
echo " [build addtl installs]"
117
115
REQ=" ci/requirements-${PYTHON_VERSION}${JOB_TAG} .build.sh"
118
116
if [ -e ${REQ} ]; then
@@ -132,6 +130,7 @@ if [ "$COVERAGE" ]; then
132
130
pip install coverage pytest-cov
133
131
fi
134
132
133
+ echo
135
134
if [ " $BUILD_TEST " ]; then
136
135
137
136
# build & install testing
@@ -151,20 +150,23 @@ else
151
150
fi
152
151
153
152
# we may have run installations
153
+ echo
154
154
echo " [conda installs]"
155
155
REQ=" ci/requirements-${PYTHON_VERSION}${JOB_TAG} .run"
156
156
if [ -e ${REQ} ]; then
157
157
time conda install -n pandas --file=${REQ} || exit 1
158
158
fi
159
159
160
160
# we may have additional pip installs
161
+ echo
161
162
echo " [pip installs]"
162
163
REQ=" ci/requirements-${PYTHON_VERSION}${JOB_TAG} .pip"
163
164
if [ -e ${REQ} ]; then
164
165
pip install -r $REQ
165
166
fi
166
167
167
168
# may have addtl installation instructions for this build
169
+ echo
168
170
echo " [addtl installs]"
169
171
REQ=" ci/requirements-${PYTHON_VERSION}${JOB_TAG} .sh"
170
172
if [ -e ${REQ} ]; then
@@ -176,14 +178,17 @@ if [ -z "$BUILD_TEST" ]; then
176
178
177
179
# remove any installed pandas package
178
180
# w/o removing anything else
181
+ echo
179
182
echo " [removing installed pandas]"
180
183
conda remove pandas --force
181
184
182
185
# install our pandas
186
+ echo
183
187
echo " [running setup.py develop]"
184
188
python setup.py develop || exit 1
185
189
186
190
fi
187
191
192
+ echo
188
193
echo " [done]"
189
194
exit 0
0 commit comments