This repository was archived by the owner on Apr 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
75 lines (74 loc) · 2.65 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
node_js:
- "lts/*"
jobs:
include:
- stage: Test
if: tag IS blank
before_install:
- sudo apt-get install libsecret-1-dev
- sudo apt-get install fakeroot
script:
- npm run lint
- npm test
- npm run coverage
- npm run make
# Define the release stage that runs semantic-release
- stage: Create Release
if: (NOT type IN (pull_request)) AND (branch = master)
script: skip
before_install:
- sudo apt-get install libsecret-1-dev
- sudo apt-get install fakeroot
deploy:
provider: script
skip_cleanup: true
script: npx semantic-release
# Define the stages that build the binaries and attach them to the release/tag.
- stage: Build and Deploy
if: (NOT type IN (pull_request)) AND tag IS present
os: linux
before_install:
- sudo apt-get install libsecret-1-dev
- sudo apt-get install fakeroot
before_script: echo "{\"apiKey\":\"$BUNGIE_API_KEY\",\"clientId\":\"$BUNGIE_CLIENT_ID\",\"clientSecret\":\"$BUNGIE_CLIENT_SECRET\"}" > config/bungieApp.json
script: npm run make
before_deploy: zip -r "$TRAVIS_OS_NAME.zip" ./out/make/*
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
skip_cleanup: true
file: "$TRAVIS_OS_NAME.zip"
on:
all_branches: true # We rely on the stage condition.
- stage: Build and Deploy
if: tag IS present
os: osx
before_script: echo "{\"apiKey\":\"$BUNGIE_API_KEY\",\"clientId\":\"$BUNGIE_CLIENT_ID\",\"clientSecret\":\"$BUNGIE_CLIENT_SECRET\"}" > config/bungieApp.json
script: npm run make
before_deploy: zip -r "$TRAVIS_OS_NAME.zip" ./out/make/*
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
skip_cleanup: true
file: "$TRAVIS_OS_NAME.zip"
on:
all_branches: true # We rely on the stage condition.
- stage: Build and Deploy
if: (NOT type IN (pull_request)) AND tag IS present
os: windows
before_install:
- yarn config delete proxy
- npm config rm proxy
- npm config rm https-proxy
before_script: echo "{\"apiKey\":\"$BUNGIE_API_KEY\",\"clientId\":\"$BUNGIE_CLIENT_ID\",\"clientSecret\":\"$BUNGIE_CLIENT_SECRET\"}" > config/bungieApp.json
script: npm run make
before_deploy:
- choco install zip
- zip -r "$TRAVIS_OS_NAME.zip" ./out/make/*
deploy:
provider: script
skip_cleanup: true
script: node tools/releaseWindows.js "$GITHUB_TOKEN"
on:
all_branches: true # We rely on the stage condition.