forked from NethServer/nethserver-samba-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (37 loc) · 879 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
language: ruby
services:
- docker
branches:
only:
- master
env:
global:
- DEST_ID=core
- 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 VERSIONS_PACK
-e STAGES_PACK
-e UPLOAD_DEST
"
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