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 05559a1 commit 8be0634
Showing 1 changed file with 39 additions and 41 deletions.
80 changes: 39 additions & 41 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# .travis.yml
language: python

env:
global:
- PYTHON_VERSION=3.9
python:
- 3.9

# Define the build stages
jobs:
Expand All @@ -19,50 +18,49 @@ jobs:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
install:
- conda create -q -n test python=$PYTHON_VERSION
- conda create -q -n test python=3.9
- source activate test
- pip install TelescopeML
script:
- python setup.py develop

#
# - stage: "Test on Linux with conda env and requirements.txt"
# name: "Test on Linux with conda env and requirements.txt"
# before_install:
# - sudo apt-get update
# - sudo apt-get install -y wget
# - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
# - 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 -q -n test python=3.9
# - source activate test
# - pip install -r requirements.txt
# script:
# - python setup.py develop
#
#
# - stage: "Test on Linux with conda env and pip TelescopeML"
# name: "Test on Mac with conda env and pip TelescopeML"
# before_install:
# - sudo apt-get update
# - sudo apt-get install -y wget
# - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
# - 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 -q -n test python=3.9
# - source activate test
# - pip install TelescopeML
# script:
# - python setup.py develop

- stage: "Test on Linux with conda env and requirements.txt"
name: "Test on Linux with conda env and requirements.txt"
before_install:
- sudo apt-get update
- sudo apt-get install -y wget
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- 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 -q -n test python=3.9
- source activate test
- pip install -r requirements.txt
script:
- python setup.py develop


- stage: "Test on Linux with conda env and pip TelescopeML"
name: "Test on Mac with conda env and pip TelescopeML"
before_install:
- sudo apt-get update
- sudo apt-get install -y wget
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- 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 -q -n test python=3.9
- source activate test
- pip install TelescopeML
script:
- python setup.py develop
# Define additional configurations
branches:
only:
Expand Down

0 comments on commit 8be0634

Please sign in to comment.