Skip to content

Commit

Permalink
Integrate osx into travis. (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
DocGarbanzo committed Oct 19, 2020
1 parent abec9e0 commit aa7d73b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .travis.yml
@@ -1,18 +1,19 @@
---
language: python
# ubuntu 18.04
dist: bionic
# This python is used in the initial venv but conda's python is in the yaml file
python:
- 3.6
- 3.7
# travis pipeline
dist: focal

os:
- linux
- osx

install:
- sudo apt-get update -qq
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-get update -qq;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
Expand All @@ -21,7 +22,8 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda env create -f install/envs/ubuntu.yml
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then conda env create -f install/envs/mac.yml ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then conda env create -f install/envs/ubuntu.yml ; fi
- conda activate donkey
- pip install -e .
- conda env export > environment.yml
Expand Down

0 comments on commit aa7d73b

Please sign in to comment.