forked from pluralsight/mob-timer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.6 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
language: node_js
git:
autocrlf: input
cache: npm
node_js:
- "12.16.3"
os:
- windows
- osx
- linux
dist: xenial
script:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
npm run travis-script-win;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
npm run travis-script-mac;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
npm run travis-script-linux;
fi
after_script:
- ls -R dist
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
npm run package-win;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
npm run package-mac;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
npm run package-linux;
fi
deploy:
provider: releases
edge: true
token:
secure: l0K8rtIoYlPio10BgyLbHMveNj9SOjtfk6wL3ZipQV6WHm/7yUy4CWNgE3FC510zyMew6LpONx27GAsdY UdPFeXO4TyRDHP9LU4TTq7zxKPZ7v6afBmOlmcjTPuTX4hmn7TSgPBcOsp1jv64IgLpDMaLIyO1xxMi3BTwc3yPZO2ndjUKKafseEdOg1tMnQENzHnN52Zc0opJxnapHIhPSuwvEA4WTzH97b0uqHWfsK8DalraAMEZ35tBKdMP7lpxJ9ErgxNb3XH0SGs8WHi9xrpxDzzpBNCOHfu/8FzNAFy0NCnpuHaQPjViVsxI9wfwqUok1oKgrAVik9sXG9y09NPH 9RwwE/2kqGUcKnD1PF0xKzADQvDdv/4X4hFPOovJRNVUfUJwy7mt8CXZnum8ntMeR9BY9QLnjk9PoSCodY9eqEsIBenaxwA944ePb2CZMzTn9Jj51mHSFJWVTgKIzVx3L LsYLFALSv/j6X NSnMJI0eNhF544vDbngRBfNQF0fajPTvECiFqnmstkHupbs0nNKRlmLXwNS4oaVKWUUzjozFUaOwf/c3tIZMePvALGOy4Gc36UYHLQuJLivwCcEb/yDNB7oGuQ vRrDCZ7F0JfWbxIIgjmDFtwgPGeHFKeZR3oneweeM75PMsaRk8zln0vaMZ8wuUWk8ERZhw=
file:
- "${TRAVIS_BUILD_DIR}/dist/mob-timer-win32-x64.zip"
- "${TRAVIS_BUILD_DIR}/dist/mob-timer-darwin-x64.tar.gz"
- "${TRAVIS_BUILD_DIR}/dist/mob-timer-linux-x64.tar.gz"
on:
tags: true