Skip to content
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

Debug #14

Merged
merged 4 commits into from
Mar 13, 2017
Merged
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
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto

meta.yaml text eol=lf
build.sh text eol=lf
bld.bat text eol=crlf
28 changes: 18 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
language: generic

os: osx
osx_image: beta-xcode6.1
osx_image: xcode6.4

env:
global:
Expand All @@ -14,30 +14,38 @@ env:

before_install:
# Remove homebrew.
- brew remove --force $(brew list)
- brew cleanup -s
- rm -rf $(brew --cache)
- |
echo ""
echo "Removing homebrew from Travis CI to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew


install:
# Install Miniconda.
- |
echo ""
echo "Installing a fresh version of Miniconda."
MINICONDA_URL="https://repo.continuum.io/miniconda"
MINICONDA_FILE="Miniconda3-latest-MacOSX-x86_64.sh"
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
bash $MINICONDA_FILE -b

# Configure conda.
- |
echo ""
echo "Configuring conda."
source /Users/travis/miniconda3/bin/activate root
conda config --remove channels defaults
conda config --add channels defaults
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup

# install conda-build 2.x to build with a long prefix
conda install --yes --quiet conda-build=2
conda info

script:
- conda build ./recipe

- upload_or_check_non_existence ./recipe conda-forge --channel=main
# inspect the prefix lengths of the built packages
- conda inspect prefix-lengths /Users/travis/miniconda3/conda-bld/osx-64/*.tar.bz2
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BSD 3-clause license
Copyright (c) conda-forge
Copyright (c) 2015-2017, conda-forge
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Summary: Libraries and data formats that support array-oriented scientific data.



Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/libnetcdf-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/libnetcdf-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/libnetcdf-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/libnetcdf-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/libnetcdf-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/libnetcdf-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/libnetcdf/badges/version.svg)](https://anaconda.org/conda-forge/libnetcdf)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/libnetcdf/badges/downloads.svg)](https://anaconda.org/conda-forge/libnetcdf)

Installing libnetcdf
====================

Expand Down Expand Up @@ -67,18 +79,6 @@ Terminology
**conda-forge** - the place where the feedstock and smithy live and work to
produce the finished article (built conda distributions)

Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/libnetcdf-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/libnetcdf-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/libnetcdf-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/libnetcdf-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/libnetcdf-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/libnetcdf-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/libnetcdf/badges/version.svg)](https://anaconda.org/conda-forge/libnetcdf)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/libnetcdf/badges/downloads.svg)](https://anaconda.org/conda-forge/libnetcdf)


Updating libnetcdf-feedstock
============================
Expand Down
43 changes: 15 additions & 28 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ environment:
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"

# We set a default Python version for the miniconda that is to be installed. This can be
# overridden in the matrix definition where appropriate.
CONDA_PY: "27"
CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"

BINSTAR_TOKEN:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
secure: MP4hZYylDyUWEsrt3u3cod2sbFeRwUziH02mvQOdbjsTO/l1yIxDkP/76rSIjcGC
Expand All @@ -28,19 +23,19 @@ environment:
CONDA_INSTALL_LOCN: C:\\Miniconda-x64

- TARGET_ARCH: x86
CONDA_PY: 34
CONDA_INSTALL_LOCN: C:\\Miniconda3
CONDA_PY: 35
CONDA_INSTALL_LOCN: C:\\Miniconda35

- TARGET_ARCH: x64
CONDA_PY: 34
CONDA_INSTALL_LOCN: C:\\Miniconda3-x64
CONDA_PY: 35
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64

- TARGET_ARCH: x86
CONDA_PY: 35
CONDA_PY: 36
CONDA_INSTALL_LOCN: C:\\Miniconda35

- TARGET_ARCH: x64
CONDA_PY: 35
CONDA_PY: 36
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64


Expand All @@ -63,31 +58,23 @@ install:
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q

# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda update --yes --quiet conda

- cmd: set PYTHONUNBUFFERED=1

# Add our channels.
- cmd: set "OLDPATH=%PATH%"
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
- cmd: conda config --set show_channel_urls true
- cmd: conda config --remove channels defaults
- cmd: conda config --add channels defaults
- cmd: conda config --add channels conda-forge

# Add a hack to switch to `conda` version `4.1.12` before activating.
# This is required to handle a long path activation issue.
# Please see PR ( https://github.com/conda/conda/pull/3349 ).
- cmd: conda install --yes --quiet conda=4.1.12
- cmd: set "PATH=%OLDPATH%"
- cmd: set "OLDPATH="

# Actually activate `conda`.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: set PYTHONUNBUFFERED=1

# Configure the VM.
- cmd: conda install -n root --quiet --yes obvious-ci
- cmd: conda install -n root --quiet --yes conda-forge-build-setup
- cmd: run_conda_forge_build_setup

- cmd: # install conda-build 2.x to build with a long prefix
- cmd: conda install --yes --quiet conda-build=2
- cmd: conda info

# Skip .NET project specific build phase.
build: off

Expand Down
13 changes: 3 additions & 10 deletions ci_support/run_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config=$(cat <<CONDARC

channels:
- conda-forge
- defaults # As we need conda-build
- defaults

conda-build:
root-dir: /feedstock_root/build_artefacts
Expand All @@ -25,8 +25,8 @@ CONDARC
)

cat << EOF | docker run -i \
-v ${RECIPE_ROOT}:/recipe_root \
-v ${FEEDSTOCK_ROOT}:/feedstock_root \
-v "${RECIPE_ROOT}":/recipe_root \
-v "${FEEDSTOCK_ROOT}":/feedstock_root \
-a stdin -a stdout -a stderr \
condaforge/linux-anvil \
bash || exit $?
Expand All @@ -41,14 +41,7 @@ conda clean --lock
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup

# install conda-build 2.x to build a long prefix
conda install --yes --quiet conda-build=2
conda info

# Embarking on 1 case(s).
conda build /recipe_root --quiet || exit 1
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1

# inspect the prefix lengths of the built packages
conda inspect prefix-lengths /feedstock_root/build_artefacts/linux-64/*.tar.bz2
EOF
3 changes: 3 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1

ctest
if errorlevel 1 exit 1

nmake install
if errorlevel 1 exit 1
17 changes: 11 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source:
- semantics.c.patch # [win]

build:
number: 2
number: 3
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
Expand All @@ -24,7 +24,7 @@ requirements:
build:
- python # [win]
- cmake
- pkg-config # [unix]
- pkg-config # [not win]
- msinttypes # [win]
- curl
- zlib 1.2.*
Expand All @@ -44,16 +44,21 @@ requirements:

test:
commands:
- nc-config --all # [unix]
- test -f ${PREFIX}/lib/libnetcdf.a # [unix]
- nc-config --all # [not win]
- test -f ${PREFIX}/lib/libnetcdf.a # [not win]
- test -f ${PREFIX}/lib/libnetcdf.so # [linux]
- test -f ${PREFIX}/lib/libnetcdf.dylib # [osx]
#- conda inspect linkages -p $PREFIX libnetcdf # [not win]
#- conda inspect objects -p $PREFIX libnetcdf # [osx]
- ncdump -h http://geoport-dev.whoi.edu/thredds/dodsC/estofs/atlantic
# FIXME: the next two are failing at the moment.
- ncdump -h http://thredds.ucar.edu/thredds/dodsC/grib/NCEP/GFS/Global_0p5deg/GFS_Global_0p5deg_20170215_1200.grib2
- ncdump -h https://data.nodc.noaa.gov/thredds/dodsC/ioos/sccoos/scripps_pier/scripps_pier-2016.nc
- conda inspect linkages -p $PREFIX libnetcdf # [not win]
- conda inspect objects -p $PREFIX libnetcdf # [osx]

about:
home: http://www.unidata.ucar.edu/software/netcdf/
license: MIT
license_file: COPYRIGHT
summary: 'Libraries and data formats that support array-oriented scientific data.'

extra:
Expand Down
3 changes: 0 additions & 3 deletions recipe/run_test.sh

This file was deleted.