-
Notifications
You must be signed in to change notification settings - Fork 75
/
.travis.yml
53 lines (42 loc) · 1.63 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
osx_image: xcode7.3
sudo: required
dist: trusty
language: node_js
node_js: "8"
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
os:
- linux
- osx
cache:
directories:
#- node_modules
- "$HOME/.electron"
- "$HOME/.cache"
# before_install:
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update; sudo apt install --yes graphicsmagick; sudo apt-get install --no-install-recommends -y icnsutils; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update; sudo apt install --yes snapd; export PATH=/snap/bin:$PATH; fi
install:
- mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v2.2.1/git-lfs-$([ "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-2.2.1.tar.gz | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull
- curl -L https://github.com/yarnpkg/yarn/releases/download/v1.0.1/yarn-v1.0.1.tar.gz | tar xvz && mv yarn-v1.0.1 $HOME/.yarn
- export PATH="$HOME/.yarn/bin:$PATH"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt update; sudo apt install --yes libdbus-1-dev; fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo snap install snapcraft --classic --edge; fi
- npm install -g gulp-cli
- yarn
# before_script:
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi
script:
- gulp
- yarn test
- yarn creds
- yarn dist
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
notifications:
email:
on_success: always # default: change
on_failure: always # default: always