forked from EOEPCA-archive/um-pep-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (38 loc) · 1.39 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
language: python
python: 3.6.9
env:
DOCKER_COMPOSE_VERSION: 1.25.4
services:
- docker
jobs:
include:
- stage: Testing
install: pip3 install -r src/requirements.txt
script: python3 -m unittest tests/testMongo.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-pep-engine
- stage: smoke and acceptance test
install: skip # without this there's a `git clone` executed!
script: travis/acceptanceTest.sh um-pep-engine 8080 8080 # 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-pep-engine
import:
- docs/.travis.yml
notifications:
slack: eoepca:Msk9hjQKAbwSYcVWiepenPim
# email:
# recipients:
# - a.person@acme.com
# - a.n.other@acme.com
on_success: always
on_failure: never