"Fossies" - the Fresh Open Source Software Archive

Member "codespell-1.17.1/.travis.yml" (22 May 2020, 1620 Bytes) of package /linux/misc/codespell-1.17.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for ".travis.yml": 1.16.0_vs_1.17.1.

    1 # vim ft=yaml
    2 # Multiple lines can be made a single "virtual line" because of how Travis
    3 # munges each line before executing it to print out the exit status.  It's okay
    4 # for it to be on multiple physical lines, so long as you remember: - There
    5 # can't be any leading "-"s - All newlines will be removed, so use ";"s
    6 
    7 dist: bionic
    8 language: python
    9 cache: pip
   10 python:
   11   - 2.7
   12   - 3.5
   13   - 3.6
   14   - 3.7
   15   - 3.8
   16 env:
   17   REQUIRE_ASPELL=true
   18 
   19 addons:
   20   apt:
   21     packages:
   22       - libaspell-dev
   23       - aspell-en
   24 
   25 before_install:
   26     - source tools/travis_tools.sh
   27     - SRC_DIR=$PWD
   28     - cd ~
   29     - virtualenv --python=python venv
   30     - source venv/bin/activate
   31     - python --version  # just to check
   32     - pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
   33     - retry pip install pytest pytest-cov pytest-dependency flake8 coverage codecov chardet setuptools docutils check-manifest
   34     - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then retry pip install aspell-python-py2; fi
   35     - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "3" ]; then retry pip install aspell-python-py3; fi
   36     - cd $SRC_DIR
   37 
   38 install:
   39     - python setup.py install
   40 
   41 script:
   42     - codespell --help
   43     - make check-dictionary
   44     - codespell --skip="codespell_lib/tests/test_basic.py,codespell_lib/data/*" codespell_lib/
   45     # this file has an error
   46     - "! codespell codespell_lib/tests/test_basic.py"
   47     - flake8
   48     - if [ "$TRAVIS_PYTHON_VERSION" != "2.7" ]; then
   49         python setup.py check --restructuredtext --strict;
   50       fi;
   51     - pytest codespell_lib
   52     - make check-manifest
   53 
   54 after_success:
   55     - codecov