From 8be06340203a65b46f3f30cb32f8c2f309d27d83 Mon Sep 17 00:00:00 2001 From: EhsanGharibNezhad Date: Mon, 27 Nov 2023 14:36:43 -0800 Subject: [PATCH] update travis yml --- .travis.yml | 80 ++++++++++++++++++++++++++--------------------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0fcadd43..d2e3ea77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ # .travis.yml language: python -env: - global: - - PYTHON_VERSION=3.9 +python: + - 3.9 # Define the build stages jobs: @@ -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: