Skip to content

Commit

Permalink
CI: fix appveyor to use fixed versioning
Browse files Browse the repository at this point in the history
since the GIT_* env variables are not available
  • Loading branch information
jreback committed Mar 8, 2016
1 parent 23fb736 commit 07c84d5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 24 deletions.
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

0 comments on commit 07c84d5

Please sign in to comment.