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

@@ -49,8 +49,6 @@ class GoBootstrap(Package):
version('1.4-bootstrap-20161024', '76e42c8152e8560ded880a6d1d1f53cb',
url='https://storage.googleapis.com/golang/go1.4-bootstrap-20161024.tar.gz')
variant('test', default=True, description='Build and run tests as part of the build.')
provides('golang@:1.4-bootstrap-20161024')
depends_on('git', type=('build', 'link', 'run'))
@@ -75,7 +73,7 @@ def install(self, spec, prefix):
env['CGO_ENABLED'] = '0'
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)