-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
54 lines (49 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
language: node_js
services:
- docker
node_js:
- 12
os:
- linux
# - osx
#osx_image: xcode11.3
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
cache:
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
script:
- npm run build:web
jobs:
include:
- stage: test
name: lint tests
script: npm run lint
os: linux
- name: unit tests
script: npm run test
os: linux
# - stage: alpha
# name: publish alpha docker
# script: /bin/sh travis/docker.sh
# if: branch = env(DEV_BRANCH) AND type = push
# os: linux
- script: npm run release:all
name: build desktop artifacts
if: branch = env(DEV_BRANCH) AND type = push
os: linux
# - stage: release
# name: release docker
# script: /bin/sh travis/docker.sh
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# os: linux
# - name: release desktop artifacts, tag and update version
# script: /bin/sh travis/release.sh
# if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
# os: linux