This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.64 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
sudo: required
os: linux
dist: trusty
services:
- docker
language: java
jdk:
- oraclejdk11 # This is needed in order to have a $HOME/.m2 directory already set up
install: true
env:
global:
- DOCKER_COMPOSE_VERSION="1.23.2"
- SONAR_PROJECT_KEY="Butterfly"
- SONAR_PROJECT_ORGANIZATION="dstack-group"
cache:
directories:
- /usr/local/bin
- /usr/bin
- $HOME/.travis_cache
- $HOME/.m2 # Maven will download dependencies to this folder
- ./user-manager/user-manager-rest-api/node_modules # User Manager's Node.js dependencies
- ./user-manager/slack-account-configurator/node_modules # Slack Account Configurator's Node.js dependencies
# matrix:
# fast_finish: true
addons:
apt:
packages:
- docker-ce # updates Docker
before_install:
# shows the current version of docker
- docker --version
# install the version of docker-compose identified by $DOCKER_COMPOSE_VERSION
- sudo rm /usr/local/bin/docker-compose
- sudo curl -L "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
- sudo chmod +x /usr/bin/docker-compose
# shows the current version of docker-compose
- docker-compose --version
# makes the shell files executable
- find ./ -type f -name "*.sh" -exec chmod +x {} \;
# install project dependencies
- ./run.sh install
script:
# tests the Java services and the User Manager
- ./run.sh --build test
after_script:
# uploads code metrics to SonarCloud. Requires $SONAR_TOKEN to be a valid SonarCloud token.
- ./run.sh sonarcloud