forked from sidneys/live-wallpaper-ecorp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (51 loc) · 1.25 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
matrix:
include:
- os: osx
osx_image: xcode8.2
sudo: required
- os: linux
dist: trusty
sudo: required
compiler: clang
language: c
branches:
only:
- release
cache:
directories:
- "$HOME/.electron"
- "./node_modules"
addons:
apt:
packages:
- bsdtar
- g++-multilib
- gcc-multilib
- graphicsmagick
- icnsutils
- rpm
- xz-utils
before_install:
- echo "🚦 Authorizing Build"
- if [[ "${OSTYPE}" == "darwin"* ]] && [[ "${DEPLOY_MACOS}" == 0 ]]; then travis_terminate 0; fi
- if [[ "${OSTYPE}" == "linux"* ]] && [[ "${DEPLOY_LINUX}" == 0 ]]; then travis_terminate 0; fi
- echo "🔧 Setting up Environment"
- curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | NVM_DIR="${HOME}"/.nvm sh
- source "${HOME}"/.nvm/nvm.sh && nvm install 7.8.0 && nvm use 7.8.0
- npm --global update npm
install:
- echo "📥 Installing Dependencies"
- npm install
script:
- echo "📦 Building"
- npm run build --metadata
after_success:
- echo "📮 Deploying"
- npm run deploy
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a1a9de50af1c703bfe6c
on_success: change
on_failure: always
on_start: never