-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
53 lines (49 loc) · 1.11 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
47
48
49
50
51
52
---
sudo: required
language: node_js
node_js:
- "8"
git:
depth: false
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
"
before_install:
- sudo apt-get install -y npm python-setuptools
- sudo npm config set ca ""
- sudo npm conf set strict-ssl false
- sudo easy_install pip
- sudo pip install transifex-client
install:
- ./prep-sources
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