forked from NethServer/nethserver-fail2ban
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (35 loc) · 835 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
---
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 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