-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
169 lines (166 loc) · 5.23 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
os:
- linux
services:
- docker
language: node_js
node_js:
- "10.13.0"
jdk:
- oraclejdk8
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
env:
global:
- PROFILE=dev
- RUN_APP=1
- PROTRACTOR=1
- JHIPSTER_TRAVIS=$HOME/generator-jhipster/travis
- JHIPSTER_SAMPLES=$JHIPSTER_TRAVIS/samples
- JHIPSTER_SCRIPTS=$JHIPSTER_TRAVIS/scripts
- APP_FOLDER=$HOME/app
- UAA_APP_FOLDER=$HOME/uaa
# environment properties
- SPRING_OUTPUT_ANSI_ENABLED=ALWAYS
- SPRING_JPA_SHOW_SQL=false
- JHI_DISABLE_WEBPACK_LOGS=true
- JHI_E2E_HEADLESS=true
# if JHIPSTER_LIB_BRANCH value is release, use the release from Maven
- JHIPSTER_LIB_REPO=https://github.com/jhipster/jhipster.git
- JHIPSTER_LIB_BRANCH=release
# if JHIPSTER_BRANCH value is release, use the release from NPM
- JHIPSTER_REPO=https://github.com/jhipster/generator-jhipster.git
- JHIPSTER_BRANCH=master
# ----- default applications -----
# matrix:
# - JHIPSTER=ngx-default PROFILE=prod PROTRACTOR=0
# - JHIPSTER=ngx-psql-es-noi18n PROFILE=prod PROTRACTOR=1
# - JHIPSTER=ngx-gradle-fr PROFILE=prod PROTRACTOR=1
# - JHIPSTER=ngx-mariadb-oauth2-sass-infinispan PROTRACTOR=1
# - JHIPSTER=ngx-h2mem-ws-nol2
# - JHIPSTER=ngx-mongodb-kafka-cucumber PROTRACTOR=0
# - JHIPSTER=ngx-session-cassandra-fr PROTRACTOR=0
# - JHIPSTER=ngx-couchbase
# - JHIPSTER=ms-ngx-gateway-eureka
# - JHIPSTER=ms-ngx-gateway-consul
# - JHIPSTER=ms-ngx-gateway-uaa
# - JHIPSTER=ms-micro-eureka
# - JHIPSTER=ms-micro-consul
# - JHIPSTER=react-mysql
#
# ----- ngx applications -----
# matrix:
# - JHIPSTER=ngx-mysql PROFILE=prod
# - JHIPSTER=ngx-psql-es-noi18n PROFILE=prod
# - JHIPSTER=ngx-sass-noi18n
# - JHIPSTER=ngx-websocket PROTRACTOR=0
# - JHIPSTER=ngx-hazelcast-cucumber
# - JHIPSTER=ngx-mariadb-kafka-nol2
# - JHIPSTER=ngx-cassandra
# - JHIPSTER=ngx-mongodb
# - JHIPSTER=ngx-oauth2
# - JHIPSTER=ngx-session
# - JHIPSTER=ngx-infinispan
# - JHIPSTER=ngx-couchbase
#
# ----- gradle applications -----
# matrix:
# - JHIPSTER=gradle-ngx-mysql PROFILE=prod
# - JHIPSTER=gradle-ngx-psql-es-noi18n PROFILE=prod
# - JHIPSTER=gradle-ngx-sass-noi18n
# - JHIPSTER=gradle-ngx-websocket PROTRACTOR=0
# - JHIPSTER=gradle-ngx-hazelcast-cucumber
# - JHIPSTER=gradle-ngx-mariadb-kafka-nol2
# - JHIPSTER=gradle-ngx-cassandra
# - JHIPSTER=gradle-ngx-mongodb
# - JHIPSTER=gradle-ngx-oauth2
# - JHIPSTER=gradle-ngx-session
# - JHIPSTER=gradle-ngx-infinispan
# - JHIPSTER=gradle-ngx-couchbase
#
# ----- microservices applications -----
# matrix:
# - JHIPSTER=ms-ngx-gateway-eureka
# - JHIPSTER=ms-ngx-gateway-eureka-oauth2
# - JHIPSTER=ms-ngx-gateway-consul
# - JHIPSTER=ms-ngx-gateway-uaa PROTRACTOR=0
# - JHIPSTER=ms-micro-eureka PROTRACTOR=0
# - JHIPSTER=ms-micro-eureka-oauth2 PROTRACTOR=0
# - JHIPSTER=ms-micro-consul PROTRACTOR=0
#
# ----- microservices applications with Gradle -----
# matrix:
# - JHIPSTER=gradle-ms-ngx-gateway-eureka
# - JHIPSTER=gradle-ms-ngx-gateway-eureka-oauth2
# - JHIPSTER=gradle-ms-ngx-gateway-consul
# - JHIPSTER=gradle-ms-ngx-gateway-uaa PROTRACTOR=0
# - JHIPSTER=gradle-ms-micro-eureka PROTRACTOR=0
# - JHIPSTER=gradle-ms-micro-eureka-oauth2 PROTRACTOR=0
# - JHIPSTER=gradle-ms-micro-consul PROTRACTOR=0
#
# ----- React applications -----
# matrix:
# - JHIPSTER=react-mysql PROFILE=prod
# - JHIPSTER=react-psql-es-noi18n PROFILE=prod
# - JHIPSTER=react-sass-noi18n
# - JHIPSTER=react-websocket
# - JHIPSTER=react-mariadb-kafka
# - JHIPSTER=react-cassandra
# - JHIPSTER=react-mongodb
# - JHIPSTER=react-oauth2
# - JHIPSTER=react-session
# - JHIPSTER=react-infinispan
# - JHIPSTER=react-couchbase
#
# ----- Docker applications -----
# matrix:
# - JHIPSTER=ngx-mysql PROFILE=prod PROTRACTOR=1
#
before_install:
- jdk_switcher use oraclejdk8
- java -version
- export TZ=Australia/Canberra
- date
- sudo /etc/init.d/mysql stop
- sudo /etc/init.d/postgresql stop
# Use this for Protractor
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Upgrade NPM
- npm install -g npm
# Install with Yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH=$HOME/.yarn/bin:$PATH
- yarn -v
install:
- $TRAVIS_BUILD_DIR/travis/scripts/00-install-jhipster.sh
- if [[ "$JHIPSTER" == "" ]]; then
cd "$HOME"/generator-jhipster;
npm test;
fi
# copy samples
- cp -R "$TRAVIS_BUILD_DIR"/travis/samples/* "$JHIPSTER_SAMPLES"/
- ls -al "$JHIPSTER_SAMPLES"/
- if [[ $JHIPSTER == "" ]]; then exit 0; fi;
# generate project and entities
- $JHIPSTER_SCRIPTS/01-generate-entities.sh
- $JHIPSTER_SCRIPTS/02-generate-project.sh
- $JHIPSTER_SCRIPTS/03-replace-version-generated-project.sh
script:
- $JHIPSTER_SCRIPTS/03-docker-compose.sh
- $JHIPSTER_SCRIPTS/04-tests.sh
- $JHIPSTER_SCRIPTS/05-run.sh
# ----- Docker build
# before_install:
# - docker version
# install:
# - docker pull jhipster/jhipster:master
# script:
# - $TRAVIS_BUILD_DIR/travis/scripts/04-tests-docker.sh