This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.7 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
sudo: required
language: node_js
node_js:
- "6"
services:
- docker
jobs:
include:
- stage: test
name: "copr build test"
script:
- export SPEC=iml-old-gui.spec
- docker run -it -e SPEC="$SPEC" -e LOCAL_ONLY="True" -v $(pwd):/build:rw imlteam/copr
- ((`find _topdir/RPMS -name *.rpm | wc -l` > 0))
- stage: deploy-npm
name: "npm Deploy"
script: skip
before_deploy:
- npm i --ci
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
on:
all_branches: true
- stage: deploy-copr-r5.1
name: "Copr deploy"
script:
- export OWNER=managerforlustre
- export PROJECT=manager-for-lustre-5.1
- export PACKAGE=iml-old-gui
- export SPEC=iml-old-gui.spec
- docker run -it -e OWNER="$OWNER" -e PROJECT="$PROJECT" -e PACKAGE="$PACKAGE" -e SPEC="$SPEC" -e PROD="True" -e KEY="$encrypted_253525cedcf6_key" -e IV="$encrypted_253525cedcf6_iv" -v $(pwd):/build:rw imlteam/copr
on:
all_branches: true
- stage: cd
env: Type='Continuous Deployment'
script:
- export OWNER=managerforlustre
- export PROJECT=manager-for-lustre-devel
- export PACKAGE=iml-old-gui
- export SPEC=iml-old-gui.spec
- docker run -it -e OWNER="$OWNER" -e PROJECT="$PROJECT" -e PACKAGE="$PACKAGE" -e SPEC="$SPEC" -e KEY="$encrypted_253525cedcf6_key" -e IV="$encrypted_253525cedcf6_iv" -v $(pwd):/build:rw imlteam/copr
stages:
- test
- name: deploy-npm
if: branch =~ ^v\d+\.\d+\.\d+-1.*$
- name: deploy-copr-r5.1
if: branch =~ ^v\d+\.\d+\.\d+-.+-r5\.1$
- name: cd
if: branch = master AND type = push AND fork = false