summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2021-09-04 22:19:59 +0800
committerGitHub <noreply@github.com>2021-09-04 22:19:59 +0800
commit6535ac9b99d1977d123743247f7c35bf910a24b6 (patch)
treefc24b95a69dccf37478743f88e5e3aa4f6f574d6
parentc5c5dbc64fe68ca0fdfdab177520f9fdb1d7fcd8 (diff)
downloaddevtools-6535ac9b99d1977d123743247f7c35bf910a24b6.tar.xz
Fix CI and switch to GitHub CI (#68)
-rw-r--r--.github/workflows/test.yml15
-rw-r--r--.travis.yml28
2 files changed, 15 insertions, 28 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..300d8c0
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,15 @@
+on: push
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ container: archlinux/archlinux:latest
+ steps:
+ - name: Install dependencies
+ run: pacman -Syu --noconfirm m4 make openssh subversion rsync arch-install-scripts git bzr mercurial diffutils asciidoc shellcheck
+ - uses: actions/checkout@v2
+ - name: Run tests
+ run: |
+ make PREFIX=/usr
+ make PREFIX=/usr DESTDIR="$(mktemp -d)" install
+ make check || true
+ SHELLCHECK_OPTS="-S error" make check
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 46d6cee..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-language: shell
-sudo: required
-
-services:
-- docker
-
-archlinux:
- packages:
- - openssh
- - subversion
- - rsync
- - arch-install-scripts
- - git
- - bzr
- - mercurial
- - diffutils
- - asciidoc
- - shellcheck
- script:
- - sudo pacman -Syu --noconfirm --needed "${CONFIG_PACKAGES[@]}"
- - make PREFIX=/usr
- - make PREFIX=/usr DESTDIR="$(mktemp -d)" install
- - make check || true
- - SHELLCHECK_OPTS="-S error" make check
-
-script: 'curl -s https://raw.githubusercontent.com/mikkeloscar/arch-travis/master/arch-travis.sh | bash'
-
-# vim: ft=yaml ts=2 sw=2 et: