@@ -50,16 +50,6 @@ conda config --set ssl_verify false || exit 1
50
50
conda config --set quiet true --set always_yes true --set changeps1 false || exit 1
51
51
conda update -q conda
52
52
53
- echo
54
- echo " [add channels]"
55
- conda config --remove channels defaults || exit 1
56
- conda config --add channels defaults || exit 1
57
-
58
- if [ " $CONDA_FORGE " ]; then
59
- # add conda-forge channel as priority
60
- conda config --add channels conda-forge || exit 1
61
- fi
62
-
63
53
# Useful for debugging any issues with conda
64
54
conda info -a || exit 1
65
55
90
80
echo " [create env]"
91
81
92
82
# create our environment
93
- REQ=" ci/requirements-${JOB} .build"
94
- time conda create -n pandas --file=${REQ} || exit 1
83
+ time conda env create -q -n pandas --file=" ${ENV_FILE} " || exit 1
95
84
96
85
source activate pandas
97
86
98
- # may have addtl installation instructions for this build
99
- echo
100
- echo " [build addtl installs]"
101
- REQ=" ci/requirements-${JOB} .build.sh"
102
- if [ -e ${REQ} ]; then
103
- time bash $REQ || exit 1
104
- fi
105
-
106
- time conda install -n pandas pytest> =3.1.0
107
- time pip install -q pytest-xdist moto
108
-
109
- if [ " $LINT " ]; then
110
- conda install flake8=3.4.1
111
- pip install cpplint
112
- fi
113
-
114
- if [ " $COVERAGE " ]; then
115
- pip install coverage pytest-cov
116
- fi
117
-
118
- # we may have run installations
119
- echo
120
- echo " [conda installs]"
121
- REQ=" ci/requirements-${JOB} .run"
122
- if [ -e ${REQ} ]; then
123
- time conda install -n pandas --file=${REQ} || exit 1
124
- fi
125
-
126
- # we may have additional pip installs
127
- echo
128
- echo " [pip installs]"
129
- REQ=" ci/requirements-${JOB} .pip"
130
- if [ -e ${REQ} ]; then
131
- pip install -r $REQ
132
- fi
133
-
134
- # may have addtl installation instructions for this build
135
- echo
136
- echo " [addtl installs]"
137
- REQ=" ci/requirements-${JOB} .sh"
138
- if [ -e ${REQ} ]; then
139
- time bash $REQ || exit 1
140
- fi
141
-
142
87
# remove any installed pandas package
143
88
# w/o removing anything else
144
89
echo
@@ -156,8 +101,8 @@ echo "[running setup.py develop]"
156
101
python setup.py develop || exit 1
157
102
158
103
echo
159
- echo " [show pandas ]"
160
- conda list pandas
104
+ echo " [show environment ]"
105
+ conda list
161
106
162
107
echo
163
108
echo " [done]"
0 commit comments