image: registry.gitlab.com/matteobachetti/heasarc_pipelines:latest

before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

test:3.5:
  stage: test
  script:
    - source activate py35
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc

test:3.4:
  stage: test
  script:
    - source activate py34
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc

test:2.7:
  stage: test
  script:
    - source activate py27
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc
image: registry.gitlab.com/matteobachetti/docker_image_for_tests:latest

before_script: # configure a headless display to test plot generation
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start

test:3.5:
  stage: test
  script:
    - source activate py35
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc

test:3.4:
  stage: test
  script:
    - source activate py34
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc

test:2.7:
  stage: test
  script:
    - source activate py27
    - conda install h5py
    - python setup.py test --coverage
    - coverage report -m --rcfile=heasarc_pipelines/tests/coveragerc
Use official docker image for tests
Use official docker image for tests
