This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
75 lines (72 loc) · 2.63 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: node_js
sudo: false
node_js: node
stages:
- name: deploy
if: branch IN (stable,beta,alpha)
- name: deployk8s
if: branch = master
jobs:
include:
- stage: deploy
os: osx
osx_image: xcode9.4
language: node_js
node_js: '10'
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
script:
- yarn lint
- yarn release:electron:$TRAVIS_BRANCH
deploy:
- provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
file_glob: true
file:
- dist/electron/Packaged/*
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^stable$
- provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
file_glob: true
prerelease: true
file:
- dist/electron/Packaged/*
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^beta|alpha$
- provider: s3
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_KEY
region: $S3_REGION
bucket: $S3_BUCKET
upload-dir: dist/releases
local_dir: dist/releases/
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^stable|beta|alpha$
- stage: deployk8s
services: docker
install: true
script:
- docker run -it
-e JENKINS_AUTH_TOKEN=$JENKINS_AUTH_TOKEN
-e JENKINS_BUILD_TOKEN=$JENKINS_BUILD_TOKEN
-e JENKINS_BUILD_PROJECT=$TRAVIS_REPO_SLUG
-e JENKINS_BUILD_BRANCH=$TRAVIS_BRANCH
p1hub/p1jenkinstrigger
notifications:
slack:
secure: d+/4dMle1E8GTbHuq1HJpco9RXZ/Gt0gGX7ngumpuV2T4B0H6gRWVsMB15Pa4sNEfnOTbRdQy7rvLtHIO/KYxbRIJ4qPN9vl9wPI1B2ehqU6+YJ2SBhinOI7iIdK099oxJJ6hx4LBhGfVOkWNjenkvbFifzg3dXeqqlrkyuTTSW2HDNDYWiFLQ3KKGO6nad5NQU3lSjgt/Y+CuDxE+5hA2kYl5s+PS6IrWjn01czm5FuSlhSvRZYZNGL9SMEHuZHGHN96qyKCA8zqtTB0+dpWajuRh/Lw2nyAHxXsgLNvzZ7N7k+teTq0QuWJ+4uk/L2q3JDTu/72c6EBxdrzM6sIw/RZFs5CjyF8EwiZqsPYYeSoHmmQ/g11u4v7ZUF3BH7yMH3xET33xBVT6O1o7+/C4UklSSRvfNmPgNe59Vv4PZy0TrfmKSYwOcjqSvqWlA1gatSf3GrbW8/jnqVDsflDPy7jOWrO6iOSUXksFZpAPGoGYReV9RHQEOHx+yauZnT/rR1K8h2C5HTtzqxpKXZaqFzrYu+zE9OR5o6pW5s3xNe8uCJAAl7KaBBHhFnHspdG4wOrv2bkP3mpNQYTulBK6LO4bG95xHEsbcLbbdGsudMCkBi6yLn5Wd0RBypjsmZ1MZvoVU8mkss6FZNuqK9mJ0nJej+QuH73F2SRe2rQr0=