-
Notifications
You must be signed in to change notification settings - Fork 88
/
.travis.yml
67 lines (54 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
sudo: required
dist: xenial
language: node_js
node_js:
- '10.15.3'
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta
cache:
directories:
- node_modules
- $HOME/.npm/_prebuilds
- $HOME/.cache/electron
- $HOME/.cache/electron-builder
services:
- xvfb
before_install:
- sudo apt-get install -y chromium-browser graphicsmagick icnsutils
- export CHROME_BIN=chromium-browser
before_script:
- export TRUE_COMMIT_MESSAGES=$(git log --oneline -2 | grep "+build")
- export TRUE_COMMIT=$(echo $TRUE_COMMIT_MESSAGES | awk '{print $1}')
- echo $TRUE_COMMIT_MESSAGES
- yarn install
- if [[ $TRUE_COMMIT_MESSAGES == *"+latest"* ]]; then yarn add https://github.com/particl/particl-market; fi;
script:
- echo 'Build Dist' && echo -en 'travis_fold:start:script.build\\r'
- yarn build --base-href="./"
- echo -en 'travis_fold:end:script.build\\r'
- echo 'Lint Codebase' && echo -en 'travis_fold:start:script.lint\\r'
- yarn run lint
- echo -en 'travis_fold:end:script.lint\\r'
- echo 'Test Codebase' && echo -en 'travis_fold:start:script.test\\r'
- yarn run travis:test
- echo -en 'travis_fold:end:script.test\\r'
- if [[ $TRUE_COMMIT_MESSAGES == *"+build"* ]]; then ./nightly.sh; fi;
- echo 'Done!'
# Disable coveralls for now
after_script:
- npm run coveralls
#deploy:
# - provider: releases
# api-key:
# secure: <>
# file:
# - $TRAVIS_BUILD_DIR/dist.zip
# - $TRAVIS_BUILD_DIR/dist.zip.sha256sum.txt
# overwrite: true
# on:
# tags: true