[hdf-compass] 283/295: added travis template
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository hdf-compass.
commit c88d57248e0b6fce1bbfd3752edb9045d0e6e21b
Author: giumas <giumas at yahoo.it>
Date: Sun Apr 24 01:19:27 2016 -0400
added travis template
---
.travis.yml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
README.rst | 4 ++++
appveyor.yml | 32 ++++++++++++++-----------
3 files changed, 100 insertions(+), 14 deletions(-)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..c91ebbe
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,78 @@
+# Based on: http://conda.pydata.org/docs/travis.html
+
+sudo: false
+
+# Travis-CI does not currently support Python and Mac OS X
+language: c
+
+os:
+ - linux
+ - osx
+
+env:
+ - PYTHON_VERSION=2.7
+ # - PYTHON_VERSION=3.4
+
+matrix:
+ allow_failures:
+ - os: osx
+
+before_install:
+ # Set the anaconda environment
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ if [[ "$PYTHON_VERSION" == "2.7" ]]; then
+ curl https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -o miniconda.sh;
+ else
+ curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh;
+ fi
+ else
+ if [[ "$PYTHON_VERSION" == "2.7" ]]; then
+ wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
+ else
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
+ fi
+ fi
+
+ - bash miniconda.sh -b -p $HOME/miniconda
+ - export PATH="$HOME/miniconda/bin:$PATH"
+ - hash -r
+ - conda config --set always_yes yes --set changeps1 no
+ - conda update -q conda
+ - conda info -a
+
+ # create and activate a test-environment
+ - conda create -q -n test-environment python=$PYTHON_VERSION
+ - source activate test-environment
+
+install:
+ - conda config --add channels hydroffice
+ - conda config --add channels SciTools
+ - conda config --add channels osgeo
+ - conda config --add channels IOOS
+ - conda config --add channels aaren
+ - conda config --add channels noaa-orr-erd
+ - conda config --add channels diffpy
+ - conda install -q h5py lxml numpy matplotlib pydap wxpython requests shapely proj4 geos cartopy setuptools gdal
+ - pip install --no-deps hydroffice.bag
+ - pip install --no-deps -e .
+
+script:
+ - "python -m unittest hdf_compass.array_model.test"
+ - "python -m unittest hdf_compass.asc_model.test"
+ - "python -m unittest hdf_compass.bag_model.test"
+ - "python -m unittest hdf_compass.filesystem_model.test"
+ - "python -m unittest hdf_compass.hdf5_model.test"
+ - "python -m unittest hdf_compass.opendap_model.test"
+
+after_script:
+ # If tests are successful, create a source distribution.
+ - python setup.py sdist
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ python setup.py bdist_wheel;
+ fi
+
+addons:
+ artifacts:
+ debug: true
+ paths:
+ - ./dist
diff --git a/README.rst b/README.rst
index 001feaa..7967c33 100644
--- a/README.rst
+++ b/README.rst
@@ -16,6 +16,10 @@ HDF Compass
.. image:: https://ci.appveyor.com/api/projects/status/tfg350xo8t7h70ix?svg=true
:target: https://ci.appveyor.com/project/giumas/hdf-compass
:alt: AppVeyor Status
+
+.. image:: https://travis-ci.org/giumas/hdf-compass.svg?branch=master
+ :target: https://travis-ci.org/giumas/hdf-compass
+ :alt: Travis-CI Status
Welcome to the project! HDF Compass is an experimental viewer program for
HDF5 and related formats, designed to complement other more complex
diff --git a/appveyor.yml b/appveyor.yml
index bc60201..aaf42b8 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -18,28 +18,32 @@ install:
- "SET PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
# Install the build and runtime dependencies of the project.
- - "conda config --set always_yes yes --set changeps1 no"
- - "conda update -q conda"
- - "conda info -a"
+ - conda config --set always_yes yes --set changeps1 no
+ - conda update -q conda
+ - conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION%"
- - "conda config --add channels hydroffice"
- - "conda config --add channels SciTools"
- - "conda config --add channels IOOS"
- - "activate test-environment"
+ - conda config --add channels hydroffice
+ - conda config --add channels SciTools
+ - conda config --add channels osgeo
+ - conda config --add channels IOOS
+ - conda config --add channels aaren
+ - conda config --add channels noaa-orr-erd
+ - conda config --add channels diffpy
+ - activate test-environment
# Check that we have the expected version of Python
- "python --version"
# Install dependencies
- - "conda install -q h5py lxml numpy matplotlib pydap wxpython requests shapely proj4 geos cartopy"
- - "pip install --no-dependencies hydroffice.bag setuptools==19.2"
- - "pip install pyinstaller"
+ - conda install -q h5py lxml numpy matplotlib pydap wxpython requests shapely proj4 geos cartopy setuptools gdal
+ - pip install --no-dependencies hydroffice.bag
+ - pip install pyinstaller
# Add to path the current folder
- "SET PYTHONPATH=%PYTHONPATH%;%CD%"
build_script:
- - "python setup.py build"
+ - python setup.py build
test_script:
- "python -m unittest hdf_compass.array_model.test"
@@ -51,11 +55,11 @@ test_script:
after_test:
# If tests are successful, create a whl package for the project.
- - "python setup.py bdist_wheel"
+ - python setup.py bdist_wheel
# Freeze the application using PyInstaller
- - "pyinstaller HDFCompass.1file.spec"
+ # - pyinstaller freeze/HDFCompass.1file.spec
# Show the content of the `dist` folder
- - ps: "ls dist"
+ - ps: ls dist
artifacts:
# Archive the generated wheel package and the frozen application in the ci.appveyor.com build report.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/hdf-compass.git
More information about the debian-science-commits
mailing list