dist/ci: rework spec.sh as obs-build-target using osc build.

Instead of performing a slim rpm build and check directly inside the
container a proper build is performed using `osc build`. The target
package is checked out the _service file pointed at the local copy
and then `osc service disabledrun` before building.
This commit is contained in:
Jimmy Berry
2017-09-01 17:23:13 -05:00
parent a777ec97da
commit 4bc92ac0c1
6 changed files with 66 additions and 54 deletions

13
dist/ci/osc-credentials vendored Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/python
try:
from osc import conf
except:
import sys
sys.exit()
apiurl = conf.config['apiurl']
cp = conf.get_configParser()
for key in ('user', 'pass', 'email'):
print('{}="{}"'.format(key, cp.get(apiurl, key, raw=True)))