]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: use github workflow for nbsp char check
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 19 Nov 2020 08:13:28 +0000 (09:13 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 24 Nov 2020 09:39:03 +0000 (10:39 +0100)
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 <gabrioux@redhat.com>
(cherry picked from commit 94c37b9de89ffd93449e77f7a90ad50b700fd0db)

.github/workflows/check-nbsp.yml [new file with mode: 0644]
.travis.yml [deleted file]

diff --git a/.github/workflows/check-nbsp.yml b/.github/workflows/check-nbsp.yml
new file mode 100644 (file)
index 0000000..540a7a5
--- /dev/null
@@ -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 (file)
index df3e1f2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-language: python
-python:
-  - "3.6"
-  - "3.7"
-  - "3.8"
-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