forked from FazioNico/mean-ionic-ngrx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1005 Bytes
/
.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
# @Author: Nicolas Fazio <webmaster-fazio>
# @Date: 21-04-2017
# @Email: [email protected]
# @Last modified by: webmaster-fazio
# @Last modified time: 11-10-2017
#
# Configuration
#
sudo: required
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
language: node_js
node_js:
- 7
nv:
global:
- __DEV__=false
- __PROD__=true
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
#
# Build Lifecycle:
#
before_install:
- nvm install node
- nvm use node
- npm install -g cordova ionic
- npm install -g karma-cli
- npm install -g webpack
# - ionic state clear # Deprecate: remove from ionic >3.0.0
- npm install -g webdriver-manager
- webdriver-manager update
install: npm install
script:
- karma start ./tools/config/test/karma.conf.js --single-run # unit tests
# - ionic build broewser --prod
# - protractor test-config/protractor.conf.js # run e2e tests against ionic