.travis.yml
##
# Configuration
#
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- google-chrome
packages:
- google-chrome-stable
- lib32stdc++6
- lib32z1
code_climate:
repo_token: c4a44619a3aaf39674c80d235ce4147d36987d00a4af859f25de75a70223b28f
branches:
- master
#
# Build Lifecycle:
#
before_install:
- nvm install node
- nvm use node
- npm install -g cordova@7.0.1 ionic@3.4.0
install: npm install
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm run test-ci # unit tests
# - npm run e2e # run e2e tests against ionic
after_success:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < lcov.info