forked from AFPy/python-docs-fr
Problem Matcher for pospell (#1493)
This commit is contained in:
parent
72493bf89e
commit
18418308fb
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "pospell",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(.*):(\\d+):(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -16,6 +16,8 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Register pospell problem matcher
|
||||
run: echo "::add-matcher::.github/problem-matchers/pospell.json"
|
||||
- name: Install pospell
|
||||
run: |
|
||||
sudo apt-get update
|
||||
|
|
20
.travis.yml
20
.travis.yml
|
@ -1,20 +0,0 @@
|
|||
language: python
|
||||
dist: xenial
|
||||
python: 3.7
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y hunspell hunspell-fr-comprehensive
|
||||
install:
|
||||
- pip install poutils
|
||||
- pospell --version
|
||||
- powrap --version
|
||||
- padpo --version
|
||||
script:
|
||||
- 'printf "%s\n" "$TRAVIS_COMMIT_RANGE"'
|
||||
- 'CHANGED_FILES="$(ls -1d $(git diff --name-only $TRAVIS_COMMIT_RANGE) | grep "\.po$")" ;:'
|
||||
- 'printf "%s files changed.\n" "$(printf "%s" "$CHANGED_FILES" | grep -c "po$")" ;:'
|
||||
- 'if [ -n "$CHANGED_FILES" ]; then printf -- "- %s\n" $CHANGED_FILES; fi'
|
||||
- 'if [ -n "$CHANGED_FILES" ]; then powrap --check --quiet $CHANGED_FILES; fi'
|
||||
- 'if [ -n "$CHANGED_FILES" ]; then pospell -p dict -l fr_FR $CHANGED_FILES; fi'
|
||||
- 'if [ -n "$CHANGED_FILES" ]; then make CPYTHON_PATH=/tmp/cpython/; fi'
|
||||
- 'if [ -n "$CHANGED_FILES" ]; then padpo -i $CHANGED_FILES 2>&1 | grep -v -Ff padpo.ignore || true; fi'
|
Loading…
Reference in New Issue