-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (52 loc) · 1.28 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
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
- stage: test
name: unit tests
script: npm run test
os: linux
- stage: alpha
name: publish alpha docker
script: /bin/sh travis/docker.sh alpha
if: branch = env(DEV_BRANCH) AND type = push
os: linux
# - stage: alpha
# script: npm run release:all
# name: build desktop artifacts
# if: branch = env(DEV_BRANCH) AND type = push
# os: linux
- stage: release
name: publish release docker
script: /bin/sh travis/docker.sh release
if: tag IS present
os: linux
- stage: release
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