diff --git a/.travis.yml b/.travis.yml index e7624154..b9b26a63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,40 @@ # .travis.yml - language: python +python: + - "3.9" + +# Specify the operating systems for testing +os: + - linux + - osx -matrix: +# Define the build stages +jobs: include: - - python: 3.9 + - stage: Test + name: "Test on Linux" + script: + - pip install -r requirements.txt + - python3.9 setup.py develop + - python3.9 -m unittest discover + + - stage: Test + name: "Test on macOS" + os: osx + script: + - pip install -r requirements.txt + - python3.9 setup.py develop + - python3.9 -m unittest discover + +# Define additional configurations +branches: + only: + - main # Adjust to your main branch name, e.g., master -git: - submodules: true +notifications: + email: false -before_install: - - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then - wget https://repo.continuum.io/miniconda/Miniconda2-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 - - 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 -install: - - conda create --yes -n test python=$TRAVIS_PYTHON_VERSION - - source activate test - - python setup.py develop # #language: python