Skip to content

Commit a53d45c

Browse files
committed
no conda-build
1 parent 481f75c commit a53d45c

File tree

6 files changed

+65
-139
lines changed

6 files changed

+65
-139
lines changed

.appveyor.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
environment:
2+
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64
3+
TARGET_ARCH: x64
4+
CONDA_PY: 36
5+
SRC_DIR: C:\projects\nco
6+
7+
platform:
8+
- x64
9+
10+
image:
11+
- Visual Studio 2015
12+
13+
init:
14+
# We need to define these b/c we are not using conda-build.
15+
- "ECHO %MINICONDA%"
16+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set VCVARPATH="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
17+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" set VCARGUMENT=%PLATFORM%
18+
- if "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Previous Visual Studio 2017" if "%PLATFORM%" == "x64" set VCVARPATH="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
19+
- echo "%VCVARPATH% %VCARGUMENT%"
20+
- "%VCVARPATH% %VCARGUMENT%"
21+
22+
install:
23+
# If there is a newer build queued for the same PR, cancel this one.
24+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
25+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
26+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
27+
throw "There are newer queued builds for this pull request, failing early." }
28+
29+
# Add path, activate `conda` and update conda.
30+
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
31+
- cmd: conda.exe config --set always_yes yes --set changeps1 no --set show_channel_urls true
32+
- cmd: conda.exe update conda
33+
- cmd: conda.exe config --remove channels defaults --force
34+
- cmd: conda.exe config --add channels conda-forge --force
35+
- cmd: set PYTHONUNBUFFERED=1
36+
37+
- cmd: conda.exe create --name TEST python=%PY% cmake antlr=2.7.7 curl expat gsl hdf5 libnetcdf udunits2 zlib
38+
- cmd: conda activate TEST
39+
40+
- cmd: conda.exe info --all
41+
- cmd: conda.exe list
42+
43+
# Skip .NET project specific build phase.
44+
build: off
45+
46+
test_script:
47+
# Build
48+
- build.cmd
49+
# Tests
50+
- ncks --help
51+
- ncap2 --help
52+
- ncks -M "http://tds.marine.rutgers.edu/thredds/dodsC/roms/espresso/2013_da/his/ESPRESSO_Real-Time_v2_History_Best" || exit 1
53+
- cd %SRC_DIR%\data
54+
- ncgen -o in.nc in.cdl || exit 1
55+
- ncks -H --trd -v one in.nc || exit 1
56+
- ncap2 -O -v -s "erf_one=float(gsl_sf_erf(1.0f));" in.nc foo.nc || exit 1
57+
- ncks -v erf_one foo.nc || exit 1

appveyor.yml

-38
This file was deleted.

conda.recipe/bld.bat build.cmd

+8-5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ cd %SRC_DIR%\build
44
set "CFLAGS=%CFLAGS% -DWIN32 -DGSL_DLL"
55
set "CXXFLAGS=%CXXFLAGS% -DWIN32 -DGSL_DLL"
66

7+
:: We need to define these b/c we are not using conda-build.
8+
set LIBRARY_PREFIX=%CONDA_PREFIX%\Library
9+
set LIBRARY_INC=%CONDA_PREFIX%\Library\include
10+
set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
11+
set LIBRARY_BIN=%CONDA_PREFIX%\Library\bin
12+
713
cmake -G "NMake Makefiles" ^
814
-D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
915
-D CMAKE_BUILD_TYPE=Release ^
@@ -25,10 +31,7 @@ cmake -G "NMake Makefiles" ^
2531
if errorlevel 1 exit 1
2632

2733

28-
nmake
29-
if errorlevel 1 exit 1
30-
31-
nmake install
32-
if errorlevel 1 exit 1
34+
nmake || exit 1
35+
nmake install || exit 1
3336

3437
move %LIBRARY_PREFIX%\*.exe %LIBRARY_BIN% || exit 1

conda.recipe/conda_build_config.yaml

-41
This file was deleted.

conda.recipe/meta.yaml

-42
This file was deleted.

conda.recipe/run_test.bat

-13
This file was deleted.

0 commit comments

Comments
 (0)