Skip to content

Commit

Permalink
Update CIs (#607)
Browse files Browse the repository at this point in the history
Implement and update build/test recipes

* Linux builds on [circleci](https://circleci.com)
* macOS builds on [Travis CI](https://travis-ci.org/)
* Windows builds on [AppVeyor](https://www.appveyor.com/)

All builds use `conda install --channel conda-forge fipy`.

Note:  x86(32) runs disabled because, [AppVeyor is slooooow](https://help.appveyor.com/discussions/problems/22828-builds-sit-in-queue-for-an-hour-or-more),
`conda-forge` [doesn't build x86 anymore](conda-forge/staged-recipes#5640),
and probably nobody has one?
  • Loading branch information
guyer committed Apr 8, 2019
1 parent a7be867 commit 4c5585c
Show file tree
Hide file tree
Showing 16 changed files with 428 additions and 356 deletions.
41 changes: 23 additions & 18 deletions appveyor.yml → .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,31 @@
environment:

matrix:
- TARGET_ARCH: x86
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda
FIPY_SOLVERS: pysparse

- TARGET_ARCH: x64
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda-x64
FIPY_SOLVERS: pysparse

- TARGET_ARCH: x86
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda
FIPY_SOLVERS: scipy
# - TARGET_ARCH: x64
# CONDA_PY: 27
# CONDA_INSTALL_LOCN: C:\\Miniconda-x64
# FIPY_SOLVERS: pysparse
# FIPY_INLINE: 1

# - TARGET_ARCH: x86
# CONDA_PY: 27
# CONDA_INSTALL_LOCN: C:\\Miniconda
# FIPY_SOLVERS: scipy

- TARGET_ARCH: x64
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda-x64
FIPY_SOLVERS: scipy

- TARGET_ARCH: x86
CONDA_PY: 36
CONDA_INSTALL_LOCN: C:\\Miniconda36
FIPY_SOLVERS: scipy
# - TARGET_ARCH: x86
# CONDA_PY: 36
# CONDA_INSTALL_LOCN: C:\\Miniconda36
# FIPY_SOLVERS: scipy

- TARGET_ARCH: x64
CONDA_PY: 36
Expand Down Expand Up @@ -60,23 +61,27 @@ install:
- cmd: conda.exe config --set changeps1 no
- cmd: conda.exe config --remove channels defaults
- cmd: conda.exe config --add channels defaults
- cmd: conda.exe config --add channels guyer
- cmd: conda.exe config --add channels conda-forge

# Configure the VM.
- cmd: conda.exe install --quiet --name root fipy
- cmd: if "%TARGET_ARCH%" == "x64" conda.exe install --quiet --name root python fipy
- cmd: if "%TARGET_ARCH%" == "x64" conda.exe uninstall --quiet fipy

- cmd: if "%TARGET_ARCH%" == "x86" conda.exe install --quiet --name root python numpy scipy matplotlib
- cmd: if "%TARGET_ARCH%" == "x86" if "%CONDA_PY%" == "27" conda.exe install --quiet --name root mayavi weave
- cmd: if "%TARGET_ARCH%" == "x86" if "%FIPY_SOLVERS%" == "pysparse" conda.exe install --quiet --name root pysparse

- cmd: if "%CONDA_PY%" == "36" 2to3 --write . 1> NUL 2>&1
- cmd: if "%CONDA_PY%" == "36" 2to3 --write --doctests_only . 1> NUL 2>&1

- cmd: python setup.py install

- cmd: pip install scikit-fmm

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

test_script:
- python setup.py test --%FIPY_SOLVERS%
- if !%FIPY_INLINE%==! python setup.py test 1> NUL 2>&1
- python setup.py test
- conda env export
# deploy_script:
# - cmd: upload_or_check_non_existence .\recipe guyer --channel=main
Loading

0 comments on commit 4c5585c

Please sign in to comment.