-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (83 loc) · 2.19 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
language: node_js
node_js:
- "6"
sudo: required
dist: trusty
branches:
except:
- /^\d+\.\d+\.\d+-.*/
matrix:
allow_failures:
- os: osx
include:
- os: linux
env:
- DISPLAY=:99.0
- CC=clang
- CXX=clang++
- npm_config_clang=1
- TARGET_ARCH=x64
- OS=LINUX
- os: osx
osx_image: xcode7.3
env:
- TARGET_ARCH=x64
- OS=DARWIN
- DISPLAY=:99.0
addons:
chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- xvfb
- g++-4.8
- fakeroot
- rpm
cache:
yarn: true
directories:
- $HOME/.npm
- node_modules
stages:
- name: after_success
# only want to build if master build
if: branch = master
- name: before_deploy
# only want to deploy if master build
if: branch = master
- name: deploy
# only want to deploy if master build
if: branch = master
before_install:
- npm config set spin false
install:
- npm install
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
before_script:
- npm install -g bower
- npm install -g coveralls
- npm install -g firebase-tools
- npm install -g node-gyp
- bower install
after_success:
- if [ "$OS" = "LINUX" ]; then cat coverage/lcov.info | coveralls; fi
- if [ "$OS" = "LINUX" ]; then ember build; fi
- if [ "$OS" = "LINUX" ]; then firebase deploy --token "$FIREBASE_TOKEN"; fi
- if [ "$OS" = "LINUX" ]; then travis_wait 90 ember electron:make --platform linux -prod --arch ia32 --name Ordino; fi
- if [ "$OS" = "LINUX" ]; then travis_wait 90 ember electron:make --platform linux -prod --arch x64 --name Ordino; fi
- if [ "$OS" = "DARWIN" ]; then travis_wait 90 ember electron:make --platform darwin -prod --arch x64 --name Ordino; fi
before_deploy:
- git config --local user.name "Adam Ward (Travis CI)"
- git config --local user.email "[email protected]"
- git tag "1.0.0-$(git log --format=%h -1)"
deploy:
provider: releases
api_key: $GH_RELEASE_TOKEN
file:
- electron-out/make/Ordino_1.0.0_i386.deb
- electron-out/make/Ordino_1.0.0_amd64.deb
- electron-out/make/Ordino-darwin-x64-1.0.0.zip
skip_cleanup: true