-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
43 lines (40 loc) · 955 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
39
40
41
42
---
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
"
install:
- bash prep-sources &> /dev/null
script: |
set -e
docker run -ti \
--name makerpms ${EVARS} \
--hostname "b${TRAVIS_BUILD_NUMBER}.nethserver.org" \
--volume $PWD:/srv/makerpms/src:ro ${DOCKER_IMAGE} \
makerpms-travis *.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