econocart/.travis.yml

47 lines
844 B
YAML
Raw Normal View History

2017-04-05 06:14:23 +00:00
dist: trusty
sudo: required
2017-04-03 13:39:53 +00:00
language: node_js
node_js:
2017-04-05 06:22:18 +00:00
- node
- 6
- 7
2017-05-07 02:17:28 +00:00
2017-04-03 13:39:53 +00:00
jdk:
2017-05-07 02:26:17 +00:00
- oraclejdk8
2017-05-07 02:17:28 +00:00
2017-04-03 13:39:53 +00:00
addons:
apt:
2017-05-07 03:52:00 +00:00
sources:
- google-chrome
2017-04-03 13:39:53 +00:00
packages:
2017-05-07 02:26:17 +00:00
- oracle-java8-installer
2017-05-07 03:52:00 +00:00
- google-chrome-stable
2017-04-03 13:39:53 +00:00
sonarqube:
organization: "adlerosn-github"
2017-05-07 03:52:00 +00:00
token: $SONAR_TOKEN
2017-04-03 13:39:53 +00:00
before_script:
2017-05-07 03:52:00 +00:00
- mkdir www
2017-04-05 06:22:18 +00:00
- npm install -g npm@latest
2017-05-07 02:17:28 +00:00
- npm install -g karma
2017-04-03 13:39:53 +00:00
- npm install -g cordova
- npm install -g ionic
2017-05-07 02:17:28 +00:00
- npm install
2017-05-07 02:26:17 +00:00
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
2017-05-07 03:52:00 +00:00
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ionic platform remove browser
- ionic platform add browser
2017-04-03 13:39:53 +00:00
2017-05-07 02:17:28 +00:00
script:
2017-04-03 13:39:53 +00:00
- ionic build browser --prod
2017-05-07 03:52:00 +00:00
- npm test-ci
2017-04-03 13:39:53 +00:00
- sonar-scanner
2017-05-07 03:52:00 +00:00
after_success:
2017-05-07 03:53:58 +00:00
- ./node_modules/.bin/codecov -t $CODECOV_TOKEN
2017-05-07 03:52:00 +00:00
2017-04-03 13:39:53 +00:00
notifications:
slack: econocart:HmGTsUw1lVIfPG29d8JGjP5c