econocart/.travis.yml

47 lines
1.0 KiB
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-11 02:59:09 +00:00
- npm install -g karma cordova 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
2017-05-11 03:04:47 +00:00
- npm install @ionic/cli-plugin-ionic-angular @ionic/cli-plugin-cordova
2017-05-11 02:51:56 +00:00
- ionic cordova platform remove browser
- ionic cordova platform add browser
2017-04-03 13:39:53 +00:00
2017-05-07 02:17:28 +00:00
script:
2017-05-11 02:51:56 +00:00
- ionic cordova build browser --prod
2017-05-07 04:19:51 +00:00
- ng test --watch=false --code-coverage
2017-05-07 04:11:07 +00:00
- sh -e /etc/init.d/xvfb stop
2017-05-11 02:51:56 +00:00
- sonar-scanner -Dsonar.host.url=https://sonarqube.adlerneves.com.br -Dsonar.token=$OWNSONAR_TOKEN
2017-04-03 13:39:53 +00:00
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