-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
39 lines (31 loc) · 1.15 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
language: java
jdk:
- openjdk17
services:
#- docker
- mongodb
env:
#- DOCKER_COMPOSE_VERSION=1.26.2
before_install:
- chmod +x mvnw
#- sudo rm /usr/local/bin/docker-compose
#- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
#- chmod +x docker-compose
#- sudo mv docker-compose /usr/local/bin
#- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
#- sudo apt-get update
#- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
#- sudo chmod a+x mvnw
# addons:
# apt:
# packages:
# - docker-ce
before_script:
#- docker compose up -d mongodb
# see: https://docs.codacy.com/coverage-reporter/alternative-ways-of-running-coverage-reporter/#travis-ci
- bash <(curl -Ls https://coverage.codacy.com/get.sh) download
script:
- mvn clean verify -Dspring.data.mongodb.uri=mongodb://localhost:27017/blog -Pcoverage
after_success:
- bash <(curl -Ls https://coverage.codacy.com/get.sh)