-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
37 lines (36 loc) · 1.54 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
jobs:
- job: Test
pool:
vmImage: 'Ubuntu 16.04'
variables:
NODE_VERSION: 10.15.3
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.15.3'
displayName: 'TOOLS: install Node.js'
- script: sudo npm install -g npm
displayName: 'TOOLS: update NPM'
- script: sudo chown -R vsts:docker /home/vsts/.npm/
displayName: 'BUGS-FIX: change /home/vsts/.npm/ permission'
- 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 verify
displayName: 'TESTS: backend'
- script: ./mvnw com.github.eirslett:frontend-maven-plugin:npm -Dfrontend.npm.arguments='run test'
displayName: 'TESTS: frontend'
- script: ./mvnw verify -Pprod -DskipTests
displayName: 'TESTS: packaging'