Skip to content

Commit

Permalink
update travis yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanGharibNezhad committed Nov 27, 2023
1 parent 48b0475 commit 427933c
Showing 1 changed file with 30 additions and 20 deletions.
50 changes: 30 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 427933c

Please sign in to comment.