Skip to content

Commit

Permalink
trials
Browse files Browse the repository at this point in the history
  • Loading branch information
darioizzo committed Apr 16, 2020
1 parent c1182cc commit a5e4d4b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ matrix:
# os: osx
- env: PAGMO_PLUGINS_NONFREE_BUILD="OSXPython37"
os: osx
osx_image: xcode11.3
osx_image: xcode10.3
script:
- mkdir build
- cd build
- source ../tools/install_deps.sh
- source ../tools/install_travis.sh
# NOTE: currently, travis does not stop automatically if one of these
# 2 scripts returns an error code. Thus, we run them together as a single
# command, so that if install_deps.sh fails the whole build fails immediately
# rather than executing install_travis.sh as well. See
# https://github.com/travis-ci/travis-ci/issues/1066
- ../tools/install_deps.sh && ../tools/install_travis.sh
12 changes: 6 additions & 6 deletions tools/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ set -e
# For the non manylinux builds (i.e. pip) we use conda and thus install and activate a conda environment
if [[ "${PAGMO_PLUGINS_NONFREE_BUILD}" != manylinux* ]]; then
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
export deps_dir=$HOME/local
export PATH="$HOME/miniconda/bin:$PATH"
bash miniconda.sh -b -p $HOME/miniconda
conda config --add channels conda-forge --force

# All builds will need these
conda_pkgs="boost cmake pagmo-devel"
conda_pkgs="boost cmake pagmo-devel cxx-compiler"

# Only Python builds will need these
if [[ "${PAGMO_PLUGINS_NONFREE_BUILD}" == "Python37" || "${PAGMO_PLUGINS_NONFREE_BUILD}" == "OSXPython37" ]]; then
conda_pkgs="$conda_pkgs python=3.7 pygmo pybind11"
fi

if [[ "${PAGMO_PLUGINS_NONFREE_BUILD}" == OSX* ]]; then
conda_pkgs="$conda_pkgs clangdev<10"
fi
#if [[ "${PAGMO_PLUGINS_NONFREE_BUILD}" == OSX* ]]; then
# conda_pkgs="$conda_pkgs clangdev<10"
#fi

if [[ "${PAGMO_PLUGINS_NONFREE_BUILD}" == Python* ]]; then
conda_pkgs="$conda_pkgs graphviz doxygen sphinx breathe"
Expand Down

0 comments on commit a5e4d4b

Please sign in to comment.