language: node_js
node_js:
- "5"
install:
  - sudo apt-get update
  - cd hashstore/bakery/js
  - npm install
  - cd ../../..
  - npm 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
  - conda update -q conda
  - conda info -a
  - conda create -q -n py2 python=2
  - conda create -q -n py3 python=3
  - for e in py2 py3 ;
    do
      source activate $e;
      pip install -r requirements.txt;
      pip install -r test-requirements.txt;
    done

script:
  - cd hashstore/bakery/js
  - npm run build
  - cd ../../..
  - npm run build
  - for e in py2 py3 ;
    do
      source activate $e;
      coverage run -p -m nose;
      echo $? > $e.status;
    done
  - source activate py2
  - coverage combine
  - coverage report -m
  - codecov
  - rm .coverage
  - test $(cat py2.status) == 0 && test $(cat py3.status) == 0

language: node_js
node_js:
- "8"
install:
  - sudo apt-get update
  - cd hashstore/bakery/js
  - npm install
  - cd ../../..
  - npm 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
  - conda update -q conda
  - conda info -a
  - conda create -q -n py2 python=2
  - conda create -q -n py3 python=3
  - for e in py2 py3 ;
    do
      source activate $e;
      pip install -r requirements.txt;
      pip install -r test-requirements.txt;
    done

script:
  - cd hashstore/bakery/js
  - npm run build
  - cd ../../..
  - npm run build
  - for e in py2 py3 ;
    do
      source activate $e;
      coverage run -p -m nose;
      echo $? > $e.status;
    done
  - source activate py2
  - coverage combine
  - coverage report -m
  - codecov
  - rm .coverage
  - test $(cat py2.status) == 0 && test $(cat py3.status) == 0

Fix for refactoring that gone bad.
Fix for refactoring that gone bad.
