Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (44 sloc) 1.34 KB
sudo: false
dist: trusty
language: java
jdk:
- oraclejdk8
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
env:
global:
- NODE_VERSION=7.7.3
matrix:
- TEST_DIR=Angular2-Quickstart-CLI TEST_TYPE=ng
- TEST_DIR=Angular4-Quickstart-CLI TEST_TYPE=ng
- TEST_DIR=Angular2-Example-Transform-JSObject-To-Specific-Class TEST_TYPE=ng
- TEST_DIR=Angular2-Quickstart-PrimeNG TEST_TYPE=ng
- TEST_DIR=Angular4-Example-Dynamic-Form-And-Validation TEST_TYPE=ng
- TEST_DIR=Angular2-Quickstart-JavaEE7/module-client-web/src/main/angular TEST_TYPE=ng
- TEST_DIR=Angular2-Quickstart-JavaEE7 TEST_TYPE=mvn
- TEST_DIR=Angular4-Example-Bootstrap4 TEST_TYPE=ng
cache:
directories:
- node_modules # NPM packages
- '$HOME/.m2/repository' # Cache Maven Repository
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- npm install -g typescript
- npm install -g @angular/cli
- npm install -g karma
install:
- nvm install $NODE_VERSION
script:
- nvm use $NODE_VERSION
- if [[ $TEST_TYPE == 'ng' ]]; then
cd $TEST_DIR && npm install && ng build && ng test --watch false --single-run true && ng e2e ;
elif [[ $TEST_TYPE == 'mvn' ]]; then
cd $TEST_DIR && mvn clean verify ;
fi