forked from felixrieseberg/Ghost-Desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (48 loc) · 1.33 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
---
sudo: false
matrix:
include:
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- xvfb
- libgnome-keyring-dev
- g++-4.8
env:
- NODE_VERSION=5.1 TARGET_ARCH=x64 OS=LINUX
- os: osx
osx_image: xcode7
env:
- NODE_VERSION=5.1 TARGET_ARCH=x64 OS=DARWIN
cache:
directories:
- node_modules
before_install:
# OS X ---------------------------------------------------------------------
# nvm is not yet supported on osx, manually install
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git /tmp/.nvm
- source /tmp/.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use --delete-prefix $NODE_VERSION
- node --version && npm --version
# LINUX --------------------------------------------------------------------
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export CXX=g++-4.8; fi
# Continue with our normally scheduled program -----------------------------
- "npm config set spin false"
- "npm install -g grunt-cli"
- "npm install -g bower"
install:
- npm install
- bower install
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
script:
- npm test
after_success:
# Report code coverage
- node ./node_modules/.bin/codecov