generated from EOEPCA/um-service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (31 loc) · 974 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
language: python
python: 3.6.9
env:
DOCKER_COMPOSE_VERSION: 1.25.4
services:
- docker
jobs:
include:
- stage: Testing
install: pip install -r src/requirements.txt
script: pytest src
- stage: container creation and publishing
install: skip
script: travis/containerCreation.sh um-service-template
- stage: smoke and acceptance test
install: skip # without this there's a `git clone` executed!
script: travis/acceptanceTest.sh um-service-template 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-service-template
import:
- docs/.travis.yml
#notifications:
# slack: eoepca:Msk9hjQKAbwSYcVWiepenPim
# email:
# recipients:
# on_success: never # default: change
# on_failure: never # default: always