forked from wagerr/wagerr-electron-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 1.29 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
language: node_js
node_js: 10
env:
global:
- 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
- $(npm config get prefix)/lib/node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
stages:
- lint
- test
install:
- npm install
script:
# Ideally we run `npm run package` here instead, but need to handle the
# complication of fetching the Wagerr binaries to place in the `bin` dir.
# Adding some `before_script` commands to each job to fetch the files from
# the latest GitHub release might be the solution.
- npm run build
jobs:
include:
- stage: lint
name: 'Lint Check'
script:
# Lint tests turned off until we can clear out all the current errors.
# If you would like to help out, run the below commands and you will
# see a list of errors that need to be fixed.
# - npm run lint
# - npm run lint-styles
- echo "Lint tests turned off until all current errors are resolved."
- stage: test
name: 'Linux Test'
os: linux
- stage: test
name: 'macOS Test'
os: osx
- stage: test
name: 'Windows Test'
os: windows