All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pyang..travis.yml Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
language: python
python:
  # - "2.6" # error: no register_namespace in xml.etree.ElementTree
  - "2.7"
  # - "3.2" # error: coverage doesn't work
  - "3.3"
  - "3.4"
addons:
  apt:
    packages:
      - xsltproc
      - jing
      - bash
install:
  - pip install -r requirements.txt
  - pip install coveralls virtualenv
  - SITEPACKAGES=$(pip --version | sed -n 's@.*from \([^ ]\+\) .*@\1@p')
  - echo 'import coverage; coverage.process_startup()' > $SITEPACKAGES/sitecustomize.py
  - printf '[run]\nparallel=True\n' > ~/coverage.cfg
script:
  - source env.sh
  - export COVERAGE_PROCESS_START=~/coverage.cfg
  - make test
  - find . -name '.coverage*' -exec mv -t . {} +
  - coverage combine
  # Test .gitignore for tests:
  - TMP=$(tempfile)
  - git ls-files . --exclude-standard --others | tee "$TMP"
  - if test -s "$TMP"; then false; else true; fi
  # Test if we .gitignore any tracked files:
  - git ls-files -i --exclude-standard | tee "$TMP"
  - if test -s "$TMP"; then false; else true; fi
after_success:
  - coveralls




© 2015 - 2024 Weber Informatics LLC | Privacy Policy