forked from eiffel-community/eiffel-intelligence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (61 loc) · 2.18 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
sudo: required
dist: xenial
language: java
services:
- docker
env:
- JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
# Run before every job
before_install:
- sudo apt-get update
- sudo apt-get install -y openjdk-8-jdk
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//')
- java -version
- uname -a
- chmod +x pom.xml
# This is only run before integrationTests job
# To ensure docker containers are fully up and running we sleep 20s
before_script:
- cd src/main/docker/
- source env.bash
- docker-compose up -d
- sleep 60
- cd ../../../
# Generate site documentation using mvn site plugin
before_deploy:
- rm -rf docs
- mvn site -B
# Using default stage 'test' for all our test jobs, and only running deploy stage
# (after merge) to master branch
stages:
- test
- name: deploy
if: branch = master
# List of jobs to run, tied to specific stages
jobs:
include:
- stage: test
name: functionalTests
before_script: skip
script:
# We will run one test using embedded mongodb first that will download the mongo instance and
# then the rest of the test that will no longer need to download the embedded mongo since it will exist.
#
# Also important that the first test to be run is a Spring Boot Test since spring boot also downloads
# another version of embedded mongo db to avoid race conditions between Spring Boot tests
- mvn -DsomeModule.test.includes="**/QueryServiceTest.java" test -DskipITs -B
- mvn -DsomeModule.test.excludes="**/QueryServiceTest.java" test -DskipITs -B
- stage: test
name: integrationTests
script:
- mvn verify -DskipUTs -Der.url=http://localhost:8084/search/ -Drabbitmq.exchange.name=ei-exchange -Dspring.mail.host=localhost -Dspring.mail.port=1025 -Dwaitlist.fixedRateResend=1 -B
- stage: deploy
name: deployGitHubPages
before_script: skip # do not run this on deploy
script: skip # do not run default test scripts
install: skip # do not run default mvn install
deploy:
provider: pages
skip_cleanup: true
github-token: $GITHUB_TOKEN
local_dir: docs/