forked from silexlabs/Silex
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (45 loc) · 1015 Bytes
/
.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
sudo: false
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
language: node_js
node_js:
- '8'
notifications:
email: false
cache:
directories:
- "node_modules"
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
addons:
apt:
packages:
- sshpass
before_install:
- npm i -g [email protected]
jobs:
include:
- stage: build 🔨
install: npm ci
script: npm run build
- stage: quality ✔
install: npm ci --ignore-scripts
name: lint front
script: npm run lint:js
- name: lint back
install: npm ci --ignore-scripts
script: npm run lint:server
- stage: deploy 📦
name: linux app
if: branch = develop AND repo = silexlabs/Silex
install: npm ci
script: npm run release
os: linux
dist: xenial
- name: osx app
if: branch = develop AND repo = silexlabs/Silex
install: npm ci
script: npm run release
os: osx