Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Describes how to list commands to execute on multiple continous integration service in one file.

Notifications You must be signed in to change notification settings

scikit-build/scikit-ci-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scikit-ci-schema

YAML schema and examples for scikit-ci format.

scikit-ci format describes how to list commands to execute on multiple continous integration service in one file.

Validation

The kwalify validator should be used.

$ kwalify -lf scikit-ci-schema.yml scikit-ci.yml
scikit-ci.yml#0: valid.

To facilitate the installation of the kwalify tool implemented in ruby, the docker image jcfr/dock-kwalify can be used:

curl https://raw.githubusercontent.com/jcfr/dock-kwalify/master/kwalify.sh \
-o ~/bin/kwalify && \
chmod +x ~/bin/kwalify

Example

schema_version: "0.5.0"

before_install:

  environment:
    PYTHON: python
    RUN_ENV: ""

  appveyor:
    environment:
      PYTEST_ADDOPTS: "-m \"not fortran\""
      PYTHON: $<PYTHON_DIR>\\python.exe
      RUN_ENV: .\\..\\ci\\appveyor\\run-with-visual-studio.cmd
    commands:
      - python ../ci/appveyor/patch_vs2008.py
      - python ../ci/appveyor/install_visual_studio_wrapper.py
      - python ../ci/appveyor/tweak_environment.py

  travis:
    osx:
      environment:
        PYTEST_ADDOPTS: "-m \"not fortran\""
        RUN_ENV: ../ci/travis/run-with-pyenv.sh
      commands:
        - python ../ci/travis/install_pyenv.py

install:

  commands:
    - python ../ci/install_cmake.py 3.6.2
    - $<RUN_ENV> $<PYTHON> -m pip install --disable-pip-version-check --upgrade pip
    - $<RUN_ENV> $<PYTHON> -m pip install -r requirements.txt
    - $<RUN_ENV> $<PYTHON> -m pip install -r requirements-dev.txt

  circle:
    commands:
      - sudo apt-get update
      - sudo apt-get install gfortran

before_build:
  commands:
    - $<RUN_ENV> $<PYTHON> -m flake8 -v

build:
  commands:
    - $<RUN_ENV> $<PYTHON> setup.py build

test:

  appveyor:
    environment:
      PATH: $<PYTHON_DIR>\\Scripts;$<PATH>

  commands:
    - $<RUN_ENV> $<PYTHON> setup.py test

after_test:

  commands:
    - $<RUN_ENV> codecov -X gcov --required --file ./tests/coverage.xml
    - $<RUN_ENV> $<PYTHON> setup.py bdist_wheel

  appveyor:
    commands:
      - $<RUN_ENV> $<PYTHON> setup.py bdist_wininst
      - $<RUN_ENV> $<PYTHON> setup.py bdist_msi

License

This project is maintained by Jean-Christophe Fillion-Robin from Kitware Inc.

Materials in this repository are distributed under the following licenses:

  • Unless specified otherwise, all Works of Art are licensed under the Creative Commons by Attribution 4.0 License. See LICENSE_CC_BY_40 file for details.

About

Describes how to list commands to execute on multiple continous integration service in one file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published