forked from NethServer/nethserver-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (43 loc) · 1.16 KB
/
.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
43
44
45
46
---
language: ruby
services:
- docker
branches:
only:
- master
- b5394
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
"
before_install:
# Fix https://github.com/travis-ci/travis-ci/issues/8982#issuecomment-354357640
- python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);'
install:
- bash prep-sources &> /dev/null
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