File tree Expand file tree Collapse file tree 6 files changed +378
-118
lines changed
integrationtest/resources Expand file tree Collapse file tree 6 files changed +378
-118
lines changed Original file line number Diff line number Diff line change 9
9
- oraclejdk8
10
10
11
11
env :
12
- - EI_BACKEND_PORT=8099 MONGODB_PORT=27017 RABBITMQ_AMQP_PORT=5672 RABBITMQ_WEB_PORT=15672 EIFFEL_ER_PORT=8084 JENKINS_PORT=8081 MAIL_SMTP_PORT=1025 MAIL_WEB_PORT=8025
12
+ - EI_BACKEND_PORT=8099
13
13
14
14
15
15
# Using default 'test' stage for our tests, and only running deploy stage
@@ -21,23 +21,22 @@ stages:
21
21
22
22
23
23
before_install :
24
- - git clone --depth=50 --branch=master https://github.com/eiffel-community/eiffel-intelligence.git
25
- - cd eiffel-intelligence
26
- - docker-compose up -d
24
+ - source src/main/docker/env.bash
25
+ - docker-compose -f src/main/docker/docker-compose.yml up -d eiffel-er mongodb rabbitmq jenkins mail-server
27
26
28
27
29
28
install :
29
+ - git clone --depth=50 --branch=master https://github.com/eiffel-community/eiffel-intelligence.git
30
+ - cd eiffel-intelligence
30
31
- chmod +x pom.xml
31
32
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
32
- - cd target
33
- - export EIFFEL_WAR=$(ls *.war)
34
- - java -Dspring.config.location=file:../../src/integrationtest/resources/integration-test.properties -Dserver.port=${EI_BACKEND_PORT} -jar ${EIFFEL_WAR} &
35
- - cd ../..
33
+ - export EIFFEL_WAR=$(ls target/*.war)
34
+ - java -Dspring.config.location=file:../src/integrationtest/resources/integration-test.properties -Dserver.port=${EI_BACKEND_PORT} -jar ${EIFFEL_WAR} &
35
+ - cd ..
36
36
37
37
38
38
after_script :
39
- - cd eiffel-intelligence
40
- - docker-compose down
39
+ - docker-compose -f src/main/docker/docker-compose.yml down
41
40
- fuser -k ${EI_BACKEND_PORT}/tcp
42
41
43
42
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ build.version=
9
9
server.port : 8090
10
10
11
11
# path to files with rules for aggregating objects
12
- rules.path : /ArtifactRules_new .json
12
+ rules.path : /ArtifactRules .json
13
13
14
14
# logging levels can be set with the flag below for the top packages
15
15
# deactivated by default because Travis will fail due to log file size.
Original file line number Diff line number Diff line change
1
+ ## A: Build Eiffel Intelligence frontend Docker image based on Eiffel Intelligence frontend from an Artifactory, e.g. Jitpack:
2
+ cd (git root dir)
3
+ docker build -t eiffel-intelligence-frontend --build-arg URL=https://jitpack.io/com/github/eiffel-community/eiffel-intelligence-frontend/1.0.1/eiffel-intelligence-frontend-1.0.1.war -f src/main/docker/Dockerfile .
4
+
5
+
6
+ ## B: Build Eiffel Intelligence frontend based on local source code changes
7
+ 1 . Build Eiffel Intelligence frontend artifact:
8
+ cd (git root dir)
9
+ mvn package -DskipTests
10
+
11
+ 2 . Build Eiffel-Intelligence frontend Docker image:
12
+ cd (git root dir)/
13
+ export EIFFEL_WAR=$(ls target/* .war)
14
+ docker build -t eiffel-intelligence-frontend --build-arg URL=./${EIFFEL_WAR} -f src/main/docker/Dockerfile .
15
+
16
+
17
+ ## Use docker-compose to set up eco system for testing Eiffel Intelligence
18
+
19
+ By using the docker-compose file in this directory it is possible to set up a
20
+ complete environment to run integration tests and/or system test scenarios
21
+ for Eiffel Intelligence. If you want to test with your latest local changes,
22
+ change the docker images used for the Eiffel Intelligence services.
23
+
24
+ To set up the environment for running system tests (from root directory):
25
+
26
+ source src/main/docker/env.bash
27
+ docker-compose -f src/main/docker/docker-compose.yml up -d
28
+
29
+
30
+ Or start up specific services (only ones needed for integration tests) by listing them like so:
31
+
32
+ docker-compose -f src/main/docker/docker-compose.yml up -d eiffel-er mongodb rabbitmq jenkins mail-server
33
+
34
+ NOTE: Integration tests does not need a frontend started in a docker container,
35
+ since Spring will start up EI instances for each integration test.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments