forked from fossasia/pslab-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (45 loc) · 1.09 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
language: node_js
node_js:
- node
matrix:
include:
- name: "linux"
os: linux
script:
- sudo apt-get install rpm -y
- npm run build-linux
- ls -al dist/
- name: "windows"
os: linux
services: docker
script:
- >
docker run --rm -e GH_TOKEN=$GITHUB_TOKEN
-v $PWD:/project
-v ~/.cache/electron:/root/.cache/electron
-v ~/.cache/electron-builder:/root/.cache/electron-builder
electronuserland/builder:wine /bin/bash -c "npm run build-windows"
- ls -al dist/
cache:
npm: false
before_script:
- export CI=false
script:
- npm run lint
- npm run fmt:check
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
# see .build.*.target in package.json
# TODO: Be more specific? Files are named e.g. dist/pslab_2.1.0_amd64.deb
file:
- "dist/*.deb"
- "dist/*.rpm"
- "dist/*.tar.xz"
- "dist/*.exe"
skip_cleanup: true
draft: true # TODO: remove when it works
on:
tags: true
# all_branches: true
# condition: $TRAVIS_BRANCH =~ ^(master|development)$