Remove all test variants

This commit is contained in:
Adam J. Stewart
2017-04-20 12:13:11 -05:00
parent 21e4a81de0
commit 9ca0d1f5f0
8 changed files with 16 additions and 22 deletions

View File

@@ -62,8 +62,6 @@ class Go(Package):
version('1.7.4', '49c1076428a5d3b5ad7ac65233fcca2f')
version('1.6.4', 'b023240be707b34059d2c114d3465c92')
variant('test', default=True, description='Build and run tests as part of the build.')
provides('golang')
depends_on('git', type=('build', 'link', 'run'))
@@ -93,7 +91,7 @@ def patch(self):
def install(self, spec, prefix):
bash = which('bash')
with working_dir('src'):
bash('{0}.bash'.format('all' if '+test' in spec else 'make'))
bash('{0}.bash'.format('all' if self.run_tests else 'make'))
try:
os.makedirs(prefix)