forked from Scumfunk/yamusic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (54 loc) · 1.16 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
matrix:
include:
- os: windows
language: node_js
node_js: "node"
- os: linux
dist: xenial
services:
- xvfb
language: node_js
node_js: "node"
before_install:
- sudo apt-get install -y rpm
- os: osx
language: node_js
node_js: "node"
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
branches:
only:
- master
- develop
- feature/travis_ci
script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
npm test
fi;
npm run dist
# before_deploy:
# - git config --local user.name "Yury Ivannikov"
# - git config --local user.email "[email protected]"
# - export TRAVIS_TAG=${TRAVIS_TAG:-$(git log --format=%h -1)}
# - git tag $TRAVIS_TAG
# deploy:
# provider: releases
# api_key: $GITHUB_TOKEN
# file_glob: true
# file:
# - "dist/YaMusic*.exe"
# - "dist/YaMusic*.msi"
# - "dist/yamusic-*.tar.gz"
# - "dist/yamusic-*.rpm"
# - "dist/yamusic_*.snap"
# - "dist/yamusic_*.deb"
# - "dist/YaMusic-*.dmg"
# skip_cleanup: true
# on:
# tags: true
# overwrite: true
#publish: "never"