36 lines
833 B
YAML
36 lines
833 B
YAML
|
---
|
||
|
language: ruby
|
||
|
services:
|
||
|
- docker
|
||
|
branches:
|
||
|
only:
|
||
|
- master
|
||
|
env:
|
||
|
global:
|
||
|
- DEST_ID=forge
|
||
|
- NSVER=7
|
||
|
- DOCKER_IMAGE=nethserver/makerpms:${NSVER}
|
||
|
- >
|
||
|
EVARS="
|
||
|
-e DEST_ID
|
||
|
-e TRAVIS_BRANCH
|
||
|
-e TRAVIS_BUILD_ID
|
||
|
-e TRAVIS_PULL_REQUEST_BRANCH
|
||
|
-e TRAVIS_PULL_REQUEST
|
||
|
-e TRAVIS_REPO_SLUG
|
||
|
-e TRAVIS_TAG
|
||
|
-e NSVER
|
||
|
-e ENDPOINTS_PACK
|
||
|
"
|
||
|
script: >
|
||
|
docker run -ti --name makerpms ${EVARS}
|
||
|
--hostname b${TRAVIS_BUILD_NUMBER}.nethserver.org
|
||
|
--volume $PWD:/srv/makerpms/src:ro ${DOCKER_IMAGE} makerpms-travis -s *.spec
|
||
|
&& docker commit makerpms nethserver/build
|
||
|
&& docker run -ti ${EVARS}
|
||
|
-e SECRET
|
||
|
-e SECRET_URL
|
||
|
-e AUTOBUILD_SECRET
|
||
|
-e AUTOBUILD_SECRET_URL
|
||
|
nethserver/build uploadrpms-travis
|