Revision 4775ee1fb88688ff64ca6bb747e49790da7f924d authored by Joost van Griethuysen on 05 July 2018, 14:01:01 UTC, committed by Joost van Griethuysen on 05 July 2018, 14:01:07 UTC
1 parent 5a09f94
Raw File
scikit-ci.yml
schema_version: "0.5.0"

before_install:

  appveyor:
    environment:
      PATH: $<PYTHON_DIR>;$<PYTHON_DIR>\\Scripts;$<PATH>
      RUN_ENV: .\\..\\addons\\appveyor\\run-with-visual-studio.cmd
    commands:
      - python ../addons/appveyor/patch_vs2008.py

  circle:
    environment:
      PATH: /opt/python/$<MANYLINUX_PYTHON>/bin:$<PATH>
    commands:
      - rm -rf dist/*

  travis:
    osx:
      environment:
        PATH: $<HOME>/.pyenv/versions/$<PYTHON_VERSION>/bin:$<PATH>
      commands:
        - python ../addons/travis/install_pyenv.py

install:
  commands:
    - python --version
    - python -m pip install --disable-pip-version-check --upgrade pip
    - $<RUN_ENV> pip install wheel>=0.29.0
    - $<RUN_ENV> pip install setuptools>=38.6.0
    - $<RUN_ENV> pip install --trusted-host www.itk.org -f https://itk.org/SimpleITKDoxygen/html/PyDownloadPage.html SimpleITK>=0.9.1
    - $<RUN_ENV> python -c "import SimpleITK; print('SimpleITK Version:' + SimpleITK.Version_VersionString())"
    - $<RUN_ENV> pip install -r requirements.txt
    - $<RUN_ENV> pip install -r requirements-dev.txt

before_build:
  commands:
    - flake8

build:
  commands:
    - $<RUN_ENV> python setup.py build_ext

test:
  commands:
    - $<RUN_ENV> python setup.py test  --args="--with-xunit --logging-level=DEBUG"

  circleci:
    commands:
      - cp nosetests.xml $CIRCLE_TEST_REPORTS

after_test:
  commands:
    - $<RUN_ENV> python setup.py bdist_wheel
back to top