-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (67 loc) · 2.93 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
osx_image: xcode7.3
dist: trusty
sudo: false
language: node_js
os:
- linux
- osx
node_js:
- 7
- 6
cache:
directories:
- node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- icnsutils
- graphicsmagick
- xz-utils
- xorriso
- xvfb
before_install:
- echo $TRAVIS_OS_NAME
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/versions ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc48 ; fi
install:
- export CXX="g++-4.8"
- npm install -g npm@latest
- npm install
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16; fi
before_script:
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start & fi
- sleep 3
script:
- npm run lint
- npm run test
- npm run build
- npm run test-e2e
- npm run package
before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run package-mac ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then npm run package-mac32 ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run package-linux ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run package-linux32 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export RELEASE_PKG_FILE=$(ls release/mac/*.dmg) ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export RELEASE_PKG_FILE=$(ls release/*64.deb) ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export RELEASE_PKG_FILE_32=$(ls release/mac/*.zip) ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export RELEASE_PKG_FILE_32=$(ls release/*86.deb) ; fi
- echo "deploying ${RELEASE_PKG_FILE} and ${RELEASE_PKG_FILE_32} to GitHub releases"
after_success:
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: dzHUKEOd1LncBJ7lJbu/hYb1z76L8JFTSpYHiRspAwXpUBLNBMLLtpoBexZPCdyEry9ZCKygpupIiucoXeu8n+BoHIpnRByBTYj/4OC+55+eZlvaJSsjNVWo+wglpp7lSws0fz4DjYw/8WKR0WKHi6/mxPeIgET5rACns9Wi1UN+K0TCMabriTedMXK2WGQStDT4r9wwuG8RfQtzc5EloKOSyLtJS2KFedzF7jYosRCWpj0tF3tqC2i71m3hYHqzFxeoLj2sMNVipZPWQRbTRJ20HAcmRl76pKiWIIE41lnKm/xSTmnOnVfUGkVqvV700/4OspecEVdK0bX9I3Ahx6e6W7JOnO5BZS8m2q5OIaRt3ulAtW3mZ0B2mHpnL78QEGQGLPmiOU7laNLGb4KqjgZxXLhANYQ71UMXFlfZzLS6i+FGKqEmzazoQHdftqaUKYVG4mb840AVJanQs22+MnAr+Bt8VjaIA7rSk6pfA1sxamKi687Od7uKrPPOyzoZKpUrGBmtydrZSv/tg35ymh/Df1yoaMmBgzjZjofRQK0Gb+46RCxCBebgGYvOQ65UsN458E6E7dtWgsAvrVCvEhpfUrcQw9Umk//OyikSjThc/FKTf8sHWJ4siId0dfMRiLddPAbjIBsl0n6E7P3Sl33CadojmmC/0FiBAm/RskQ=
file:
- "${RELEASE_PKG_FILE}"
- "${RELEASE_PKG_FILE_32}"
on:
repo: dreidev/breakout-tomato
tags: true