-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (47 loc) · 1.73 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
os: linux
language: shell
git:
depth: 2
branches:
only:
- master
- devel
services:
- docker
env:
global:
- IMAGE=gcr.io/dd-decaf-cfbf6/id-mapper
- BRANCH=${TRAVIS_BRANCH}
- BUILD_COMMIT=${TRAVIS_COMMIT}
- SHORT_COMMIT=${TRAVIS_COMMIT:0:7}
- BUILD_DATE=$(date -u +%Y-%m-%d)
- BUILD_TAG=${BRANCH}_${BUILD_DATE}_${SHORT_COMMIT}
before_install:
- make setup
install:
- make build
- make build-travis
- make start
script:
- make style
- make safety
# Run the tests and report coverage (see https://docs.codecov.io/docs/testing-with-docker).
- docker-compose exec -e ENVIRONMENT=testing web pytest --cov=id_mapper --cov-report=term --cov-report=xml
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- ./scripts/install_gcloud.sh
- ./scripts/install_kubectl.sh
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then make push; fi
deploy:
provider: script
script: ./scripts/deploy.sh
on:
all_branches: true
notifications:
email: false
slack:
rooms:
secure: "58HgbeojcuOWThc01T+YoB1Dkvc5wYRiiseUmahsDSHLXKzQLb55XhO+hHrEQo3/jZtWAGCkIKV0N5lZtIajAcREJMDCL2/WzhV1LKz8Aq594PgGwI+c8PEbb667X+sgPTrvibikAcepk5nRVbhkKOqkrIywYi6fzjJN+exzcbYv5Y7iNcmzDC92mIIhwA64EmN0BNVuTafVYK2iQKX/2nyS0HX/ptBuQXg+JtPVc/8dcmtTu6TrBQWTZvL5QUjFZeIBPj0nSrggiIoib8YfFnfLLPQevICMRo/ISz02M85XPsGcg3UYPJJjfsXlf7Q4f1iBc4v594UriNL5q7IDESdgUfMj/2eBlKg+c19QCot/KavCvTixOP1nzWcVJ2rBsfo39PYpZa70uhgMe0mhg8dhM/DoU7sxWHRMQ5M0AFJCkHJMoK1Wwqba7WTVhoRU09zt2ZDCV21wlQdt5gyVcqWoWtHouGHi6A4OpeCOToEZxi8Z73IBDKEi7fkEvGIgnA+gN+PkS0+2+NSfLpe3HW5LVUPU+gu+xQqdPC8ZCzLnBmJ9UOXindRWCPEMSl1xpXyeN8Z5qHMme7e0MKCM9GnJCSc3Gph67eAREJ6rD4hq4+OHYDnZAKSeHz6m2f3S6hs4jb/MkQuA+/jqt6qOOopCrH+XOwDAQdf0A8O2qC8="
on_success: change
on_failure: change
on_pull_requests: false