Skip to content

CI: fix appveyor to use fixed versioning #12561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
matrix:
fast_finish: true # immediately finish build once one of the jobs fails.

# set clone depth
clone_depth: 300

environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
Expand All @@ -23,7 +20,7 @@ environment:
PYTHON_VERSION: "3.4"
PYTHON_ARCH: "64"
CONDA_PY: "34"
CONDA_NPY: "110"
CONDA_NPY: "19"

- PYTHON: "C:\\Python27_64"
PYTHON_VERSION: "2.7"
Expand All @@ -49,36 +46,41 @@ init:
- "ECHO %PYTHON_VERSION% %PYTHON%"

install:
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit),
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit)
# updates conda & installs: conda-build jinja2 anaconda-client
- powershell .\ci\install.ps1
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- echo "install"
- cd
- ls -ltr
- git tag --sort v:refname

# this can conflict with git
- cmd: rmdir C:\cygwin /s /q

# install our build environment
- cmd: conda config --set show_channel_urls yes --set always_yes yes --set changeps1 no
- cmd: conda update -q conda
- cmd: conda config --add channels http://conda.anaconda.org/pandas
- cmd: conda config --set ssl_verify false

# this is now the downloaded conda...
- conda info -a
- cmd: conda info -a

# build em using the local source checkout in the correct windows env
- conda install conda-build
- cmd: '%CMD_IN_ENV% conda build ci\appveyor.recipe -q --no-test'
- cmd: '%CMD_IN_ENV% conda build ci\appveyor.recipe -q'

# create our env
- SET REQ=ci\requirements-%PYTHON_VERSION%-%PYTHON_ARCH%.run
- cmd: conda create -q -n pandas python=%PYTHON_VERSION% nose
- cmd: activate pandas
- cmd: conda install -q --file=%REQ%
- ps: conda install -q (conda build ci\appveyor.recipe -q --output --no-test)
- SET REQ=ci\requirements-%PYTHON_VERSION%-%PYTHON_ARCH%.run
- cmd: echo "installing requirements from %REQ%"
- cmd: conda install -n pandas -q --file=%REQ%
- ps: conda install -n pandas (conda build ci\appveyor.recipe -q --output)

test_script:
# tests
- cd \
- conda list pandas
- nosetests --exe -A "not slow and not network and not disabled" pandas
- cmd: activate pandas
- cmd: conda list
- cmd: nosetests --exe -A "not slow and not network and not disabled" pandas
6 changes: 3 additions & 3 deletions ci/appveyor.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package:
name: pandas
version: {{ environ.get('GIT_DESCRIBE_TAG','') }}
version: 0.18.0

build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER',0) }}
string: np{{ environ.get('CONDA_NPY') }}py{{ environ.get('CONDA_PY') }}_{{ environ.get('GIT_BUILD_STR','') }}
number: {{environ.get('APPVEYOR_BUILD_NUMBER', 0)}} # [win]
string: np{{ environ.get('CONDA_NPY') }}py{{ environ.get('CONDA_PY') }}_{{ environ.get('APPVEYOR_BUILD_NUMBER', 0) }} # [win]

source:

Expand Down
6 changes: 1 addition & 5 deletions ci/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ $MINICONDA_URL = "http://repo.continuum.io/miniconda/"

function DownloadMiniconda ($python_version, $platform_suffix) {
$webclient = New-Object System.Net.WebClient
if ($python_version -match "3.4") {
$filename = "Miniconda3-latest-Windows-" + $platform_suffix + ".exe"
} else {
$filename = "Miniconda-latest-Windows-" + $platform_suffix + ".exe"
}
$filename = "Miniconda3-latest-Windows-" + $platform_suffix + ".exe"
$url = $MINICONDA_URL + $filename

$basedir = $pwd.Path + "\"
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-2.7-64.run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dateutil
pytz
numpy
numpy=1.10*
xlwt
numexpr
pytables
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-3.4-64.run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python-dateutil
pytz
numpy
numpy=1.9*
openpyxl
xlsxwriter
xlrd
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements-3.5-64.run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python-dateutil
pytz
numpy
numpy=1.10*
openpyxl
xlsxwriter
xlrd
Expand Down