From dc4523a0c19ad249ac99dcaf153273666f819c11 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 19 Nov 2020 09:13:28 +0100 Subject: [PATCH] tests: use github workflow for nbsp char check Let's use a github workflow instead of travis for this. With this commit we can get rid of Travis. Signed-off-by: Guillaume Abrioux (cherry picked from commit 94c37b9de89ffd93449e77f7a90ad50b700fd0db) --- .github/workflows/check-nbsp.yml | 8 ++++++++ .travis.yml | 10 ---------- 2 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/check-nbsp.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/check-nbsp.yml b/.github/workflows/check-nbsp.yml new file mode 100644 index 000000000..540a7a535 --- /dev/null +++ b/.github/workflows/check-nbsp.yml @@ -0,0 +1,8 @@ +name: check-nbsp +on: [pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1affd153d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: python -python: - - "2.7" - - "3.6" -notifications: - webhooks: https://galaxy.ansible.com/api/v1/notifications/ -install: - - pip install -r tests/requirements.txt -script: - - if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi