Jimmy Berry 4bc92ac0c1 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.
2017-10-19 21:58:49 -05:00

12 lines
358 B
Bash
Executable File

#!/bin/bash
eval $(./dist/ci/osc-credentials)
docker run --privileged --rm -it \
-v ~/docker-tmp:/var/tmp \
-e OBS_USER="${user:-$OBS_USER}" \
-e OBS_PASS="${pass:-$OBS_PASS}" \
-e OBS_EMAIL="${email:-$OBS_EMAIL}" \
-e OBS_PACKAGE="${OBS_PACKAGE:-openSUSE:Tools/openSUSE-release-tools}" \
spec "${1:-obs-build-target}" "${2:-openSUSE_Factory}"