This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
generated from EOEPCA/um-service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (42 loc) · 1.59 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
language: python
python: 3.6.9
env:
DOCKER_COMPOSE_VERSION: 1.25.4
services:
- docker
jobs:
include:
- stage: Testing Mongo
install: pip install -r src/requirements.txt
script: python3 -m unittest tests/test_database.py
- stage: Testing PDP
install: pip install -r src/requirements.txt
before_script: cd tests
script: python3 -m unittest um_pdp_test.py
- stage: Static Code Analysis
language: java
if: branch = develop
before_install:
- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip
- unzip sonar-scanner-cli-3.3.0.1492-linux.zip -d /tmp
script: /tmp/sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONARQUBE_URL -Dsonar.login=$SONAR_TOKEN
- stage: container creation and publishing
install: skip
script: travis/containerCreation.sh um-pdp-engine
- stage: smoke and acceptance test
install: skip # without this there's a `git clone` executed!
script: travis/acceptanceTest.sh um-pdp-engine 8080 7000 # Service name + external port + internal port for docker
- stage: release
if: branch = master AND NOT type IN (pull_request)
install: skip
script: travis/release.sh um-pdp-engine
import:
- docs/.travis.yml
#notifications:
# slack: eoepca:Msk9hjQKAbwSYcVWiepenPim
# email:
# recipients:
# - a.person@acme.com
# - a.n.other@acme.com
# on_success: never # default: change
# on_failure: never # default: always