Commit 99e6134e authored by Pascal Grimaud's avatar Pascal Grimaud

Add Travis and Azure

parent 1c31ce3d
os:
- linux
services:
- docker
language: node_js
node_js:
- "10.13.0"
jdk:
- oraclejdk8
sudo: false
cache:
directories:
- node
- node_modules
- $HOME/.m2
env:
global:
- NODE_VERSION=10.13.0
- SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
- SPRING_JPA_SHOW_SQL=false
- JHI_DISABLE_WEBPACK_LOGS=true
before_install:
- jdk_switcher use oraclejdk8
- java -version
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/postgresql stop
- nvm install $NODE_VERSION
- npm install -g npm
- node -v
- npm -v
install:
- npm install
script:
- chmod +x mvnw
- ./mvnw clean test
- npm test
- ./mvnw verify -Pprod -DskipTests
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
jobs:
- job: Test
pool:
vmImage: 'Ubuntu 16.04'
variables:
NODE_VERSION: 10.13.0
SPRING_OUTPUT_ANSI_ENABLED: NEVER
SPRING_JPA_SHOW_SQL: false
JHI_DISABLE_WEBPACK_LOGS: true
steps:
#----------------------------------------------------------------------
# Install all tools and check configuration
#----------------------------------------------------------------------
- task: NodeTool@0
inputs:
versionSpec: '10.13.0'
displayName: 'TOOLS: install Node.js'
- script: sudo npm install -g npm
displayName: 'TOOLS: update NPM'
- script: sudo /etc/init.d/mysql stop
displayName: 'TOOLS: stop MySQL'
#----------------------------------------------------------------------
# Tests
#----------------------------------------------------------------------
- script: npm install
displayName: 'INSTALL: launch npm install'
- script: |
chmod +x mvnw
./mvnw clean test
displayName: 'TESTS: backend'
- script: npm test
displayName: 'TESTS: frontend'
- script: ./mvnw verify -Pprod -DskipTests
displayName: 'TESTS: packaging'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment