forked from ddd-by-examples/library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (34 loc) · 786 Bytes
/
.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
language: java
# Specify JDK versions to test against
jdk:
- openjdk11
# Cache Maven dependencies to speed up builds
cache:
directories:
- $HOME/.mvn/wrapper/
stages:
- name: Building
- name: Testing
jobs:
include:
- stage: Building
before_script:
- echo "Starting build process..."
script:
- mvn clean install
- stage: Testing
before_script:
- echo "Starting test process..."
script:
- mvn verify
after_failure:
- echo "Tests failed. Check the test results for details."
after_success:
- echo "Tests passed successfully."
# Enable notifications via email
notifications:
email:
recipients:
on_success: always
on_failure: always