language: python
sudo: false

install:
  - wget https://repo.continuum.io/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 --set show_channel_urls yes
  - conda config --add channels conda-forge
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

  - conda create -q -n test-environment python=3.5 pip mpmath matplotlib pytest pyflakes numpy scipy pyne gcc jinja2 gmpy2 cython
  - source activate test-environment
  # Change to git+git://github.com/sympy/sympy.git when
  # https://github.com/sympy/sympy/pull/12088 is merged.
  - pip install git+git://github.com/asmeurer/sympy.git@Float-prec-fix

  - python -m transmutagen.gensolve --py-solve
  - cd py_solve
  - python setup.py build_ext --inplace
  - cd ..

script:
  - pyflakes transmutagen py_solve setup.py
  - py.test transmutagen

language: python
sudo: false

install:
  - wget https://repo.continuum.io/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 --set show_channel_urls yes
  - conda config --add channels conda-forge
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

  - conda create -q -n test-environment python=3.5 pip mpmath matplotlib pytest pyflakes numpy scipy pyne gcc jinja2 gmpy2 cython
  - source activate test-environment
  # Change to git+git://github.com/sympy/sympy.git when
  # https://github.com/sympy/sympy/pull/12088 is merged.
  - pip install git+git://github.com/asmeurer/sympy.git@Float-prec-fix

  - python -m transmutagen.gensolve --py-solve
  - cd py_solve
  - python setup.py build_ext --inplace
  - cd ..

script:
  - pyflakes transmutagen py_solve setup.py
  - PYTHONPATH=py_solve py.test transmutagen

Make sure the tests in Travis can import py_solve
Make sure the tests in Travis can import py_solve
