[hdf-compass] 183/295: Add initial appveyor settings
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun May 8 10:35:42 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 0ef3033e5f4496092a195bcd50f166aeae87f908
Author: giumas <giumas at yahoo.it>
Date: Fri Oct 23 21:46:21 2015 -0400
Add initial appveyor settings
---
HDFCompass.1file.spec | 5 ++++-
appveyor.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
setup.cfg | 2 +-
3 files changed, 64 insertions(+), 2 deletions(-)
diff --git a/HDFCompass.1file.spec b/HDFCompass.1file.spec
index f256bde..f4c62d4 100644
--- a/HDFCompass.1file.spec
+++ b/HDFCompass.1file.spec
@@ -59,6 +59,9 @@ else:
if not os.path.exists(icon_file):
raise RuntimeError("invalid path to icon: %s" % icon_file)
+version = '0.6.0.dev1'
+app_name = 'HDFCompass_' + version
+
a = Analysis(['HDFCompass.py'],
pathex=[],
hiddenimports=[],
@@ -74,7 +77,7 @@ exe = EXE(pyz,
a.datas,
pkg_data_hdf_compass,
pkg_data_lxml,
- name='HDFCompass',
+ name=app_name,
debug=False,
strip=None,
upx=False,
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..161bfc4
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,59 @@
+version: develop-{build}
+
+branches:
+ only:
+ - develop
+
+environment:
+ global:
+ MINICONDA: "C:\\tools\\Miniconda"
+
+ matrix:
+ - PYTHON_VERSION: 2.7
+ # - PYTHON_VERSION: 3.4
+
+install:
+ # Install miniconda using a powershell script.
+ - "choco install -y miniconda"
+ - "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 create -q -n test-environment python=%PYTHON_VERSION%"
+ - "activate test-environment"
+
+ # Check that we have the expected version of Python
+ - "python --version"
+
+ # Install dependencies
+ - "conda install -q setuptools wheel numpy matplotlib h5py lxml opendap"
+ - "pip install hydroffice.bag"
+ - "pip install pyinstaller"
+
+ # Add to path the current folder
+ - "SET PYTHONPATH=%PYTHONPATH%;%CD%"
+
+build_script:
+ - "python setup.py build"
+
+test_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_test:
+ # If tests are successful, create a whl package for the project.
+ - "python setup.py bdist_wheel"
+ # Freeze the application using PyInstaller
+ - "pyinstaller HDFCompass.1file.spec"
+ # Show the content of the `dist` folder
+ - ps: "ls dist"
+
+artifacts:
+ # Archive the generated wheel package and the frozen application in the ci.appveyor.com build report.
+ - path: dist\*
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index 9eef58c..b70f841 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,6 +1,6 @@
[bumpversion]
current_version = 0.6.0.dev1
-files = setup.py hdf_compass/utils/__init__.py docs/conf.py
+files = setup.py hdf_compass/utils/__init__.py docs/conf.py HDFCompass.1file.spec
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:\.dev(?P<dev>\d+))?
serialize =
{major}.{minor}.{patch}.dev{dev}
--
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