Skip to content

Commit

Permalink
CI: add os: osx build job
Browse files Browse the repository at this point in the history
- and move linux builds under 'jobs'
  • Loading branch information
fkuehlein committed Jan 12, 2024
1 parent 22b19ad commit b77056e
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,32 @@ version: ~> 1.0
# require the branch name to be master
if: branch = master

language: python
python:
# https://docs.travis-ci.com/user/languages/python/#python-versions
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12-dev"
matrix:
fast_finish: true
jobs:
include:
- os: linux
arch: arm64
virt: lxd
dist: focal
sudo: false
language: python
python:
# https://docs.travis-ci.com/user/languages/python/#python-versions
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12-dev"
matrix:
fast_finish: true
- os: osx
osx_image: xcode12.2
language: shell # 'language: python' is an error on Travis CI macOS

arch: arm64
virt: lxd
os: linux
dist: focal
sudo: false

before_install:
# Python package manager
- travis_retry wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O miniconda.sh
- 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
- export PATH="$HOME/miniconda/bin:$PATH"; hash -r
- conda config --set quiet yes --set always_yes yes --set changeps1 no
Expand All @@ -39,7 +45,8 @@ install:
- travis_retry conda create -n test-env
- eval "$(conda shell.bash hook)"
- conda activate test-env
- travis_retry conda install -c conda-forge python=${TRAVIS_PYTHON_VERSION%-dev}
- 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.}; 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 b77056e

Please sign in to comment.