diff options
author | Yiyao Yu | 2018-03-05 07:22:19 +0800 |
---|---|---|
committer | Yiyao Yu | 2018-03-05 07:22:19 +0800 |
commit | 30f67e338a5547826737fdbd637b034b7e08386f (patch) | |
tree | 0ac3f8bae2161bc01c7eaae92010a28fb2cb489b /PKGBUILD | |
parent | e2815c3b77e967bed795b82dc30cfd77d4a931a3 (diff) | |
download | aur-30f67e338a5547826737fdbd637b034b7e08386f.tar.gz |
Tests are now disabled by default. Change _enabletests to 1 to run them.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,9 +1,12 @@ # Maintainer: Yiyao Yu <yuydevel@protonmail.com> +# Change the following to 1 if you want to run tests before packaging +_enabletests=0 + _pkgname=shadowsocks pkgname="${_pkgname}-git" -pkgver=2.9.1.r21.g2ab8c6b -pkgrel=2 +pkgver=2.9.1.r24.ge332ec9 +pkgrel=1 pkgdesc="A lightweight tunnel proxy" license=('Apache') _url="https://github.com/shadowsocks/shadowsocks" @@ -33,7 +36,12 @@ prepare(){ check() { cd shadowsocks - tests/jenkins.sh || warning "Tests failed" + if [ ${_enabletests} -eq 1 ]; then + echo Running tests, this might take a while... + tests/jenkins.sh || warning "Tests failed" + else + echo Tests have been disabled, set _enabletests to 1 if you want to run them. + fi } package() { |