-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
54 lines (54 loc) · 1.4 KB
/
.travis.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
os:
- linux
services:
- docker
language: node_js
node_js:
- '12.16.1'
cache:
directories:
- node
- node_modules
- $HOME/.gradle
env:
global:
- NODE_VERSION=12.16.1
- SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
- SPRING_JPA_SHOW_SQL=false
- JHI_DISABLE_WEBPACK_LOGS=true
- NG_CLI_ANALYTICS="false"
before_install:
- |
if [[ $JHI_JDK = '8' ]]; then
echo '*** Using OpenJDK 8'
else
echo '*** Using OpenJDK 11 by default'
sudo add-apt-repository ppa:openjdk-r/ppa -y
sudo apt-get update -q
sudo apt-get install -y openjdk-11-jdk -y
sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
java -version
fi
- 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
- docker-compose -f docker/redis.yml up -d
install:
- npm install
script:
- chmod +x gradlew
- ./gradlew checkstyleNohttp
- ./gradlew clean test integrationTest
# - ./gradlew npm_run_test-ci -PnodeInstall --no-daemon
- ./gradlew bootJar -Pprod -x test
after_script:
- docker-compose -f docker/redis.yml down
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: change # default: false, options: [always|never|change] default: always