summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Lundberg2019-05-27 00:34:22 +0200
committerEmil Lundberg2019-05-27 00:34:22 +0200
commit5cfee79b03792862e4e337e4b5ec64501788eed3 (patch)
tree5f12e099fbf4722efcab98bd6e89a1e65587a628
parent211de079a5f8269eb707dbd9ac5ae83123f28d3c (diff)
downloadaur-5cfee79b03792862e4e337e4b5ec64501788eed3.tar.gz
Run tests
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bfb2ee92939..f5fd68bc5e0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gws2-git
pkgdesc = Colorful KISS helper for git workspaces
- pkgver = 0.1.0.r2.g3c97a0e
- pkgrel = 2
+ pkgver = 0.1.0.r3.ga26c963
+ pkgrel = 1
url = https://github.com/emlun/gws2
arch = any
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 9fe68402ca8..0ea376a70f0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
pkgname="gws2-git"
_reponame="gws2"
_binname="gws"
-pkgver=0.1.0.r2.g3c97a0e
-pkgrel=2
+pkgver=0.1.0.r3.ga26c963
+pkgrel=1
pkgdesc="Colorful KISS helper for git workspaces"
url="https://github.com/emlun/${_reponame}"
license=('GPL3')
@@ -38,6 +38,11 @@ build() {
done
}
+check() {
+ cd "${srcdir}/${_reponame}"
+ cargo test
+}
+
package() {
install -D -m 755 "${srcdir}/${_reponame}/target/release/${_binname}" "${pkgdir}/usr/bin/${_binname}"
install -D -m 755 "${srcdir}/completions/bash" "${pkgdir}/usr/share/bash-completion/completions/${_binname}"