Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@ language: python

sudo: false

os:
- linux
- osx

matrix:
allow_failures:
- os: osx

include:
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.4"
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="true"

# Set language to generic to not break travis-ci
# https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-195620855
# so far, this issue is still open and there is no good solution
# python will then be installed by anaconda
- os: osx
sudo: required
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.4"
- os: osx
sudo: required
language: generic
env: DISTRIB="conda" PYTHON_VERSION="3.5"

cache:
apt: true
# We use three different cache directory
# to work around a Travis bug with multi-platform cache
directories:
- $HOME/.cache/pip
- $HOME/download
pip: true

# command to install dependencies
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- libatlas-dev
- liblapack-dev
- libatlas-base-dev
- gfortran
git:
depth: 5

env:
global:
# Directory where tests are run from
- TEST_DIR=/tmp/test_dir/
- MODULE=autosklearn
matrix:
- DISTRIB="conda" PYTHON_VERSION="3.4"
- DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="true"

install:
# Necessary for random forest
- export CXX="g++-4.8" CC="gcc-4.8"
- source ci_scripts/install.sh

script: bash ci_scripts/test.sh
after_success: source ci_scripts/success.sh

4 changes: 4 additions & 0 deletions ci_scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ popd
conda create -n testenv --yes python=$PYTHON_VERSION pip nose
source activate testenv

# Install anaconda gcc compiler to have compiler compatible with the
# anaconda python executable
conda install gcc --yes

# Install requirements in correct order
cat requirements.txt | xargs -n 1 -L 1 pip install

Expand Down