Skip to content

Commit

Permalink
CI: now try windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fkuehlein committed Jan 12, 2024
1 parent 23bf91a commit 7609f9b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ if: branch = master

jobs:
include:
- os: osx
osx_image: xcode12.2
language: shell # 'language: python' is an error on Travis CI macOS
# - os: osx
# osx_image: xcode12.2
# language: shell # 'language: python' is not available on Travis CI macOS
- os: windows
language: shell


before_install:
# Python package manager
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O miniconda.sh; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then travis_retry wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -O miniconda.exe; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then miniconda.exe; else bash miniconda.sh -b -p $HOME/miniconda; fi
- export PATH="$HOME/miniconda/bin:$PATH"; hash -r
- conda config --set quiet yes --set always_yes yes --set changeps1 no
- travis_retry conda update -n base -c defaults conda
Expand All @@ -47,8 +51,7 @@ install:
- travis_retry conda create -n test-env
- eval "$(conda shell.bash hook)"
- conda activate test-env
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry conda install -c conda-forge python=${TRAVIS_PYTHON_VERSION%-dev}; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry conda install -c conda-forge python=3.11; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis_retry conda install -c conda-forge python=${TRAVIS_PYTHON_VERSION%-dev}; else travis_retry conda install -c conda-forge python=3.11; fi
- travis_retry conda install -c conda-forge numpy scipy python-igraph h5netcdf tqdm
- travis_retry conda update -c conda-forge --all

Expand Down

0 comments on commit 7609f9b

Please sign in to comment.