-
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/simulations
- 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:
- ./scripts/install_gcloud.sh
- ./scripts/install_kubectl.sh
- 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=simulations --cov-report=term --cov-report=xml
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- 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: "Hi21BmbulHz9dw2P/P+dAVQAwq+trm4d8ZN+EALGzqjC++IfbR3lUgspilCe2MDwZ0KXl2KUbhEOn4ttREthY6090ENdxYCQpLHCq5GwKmR03V/HWGSSN9dLY+FZrIcPkhwmY/VhU9V+JcPMCa2eNOQjove6cgpseskPdBPc1gyITk4kEGSkHuvqcNLKXVStPaO7FFS0+DdY+VvWa8STqIRODBLk0cQHWbTLfM7pKLC0iNitEVS7ewOArxoB3qPKsIFKO+CsgecaFSQg2U0axdyZpyTNAB2g6OfNFGFtToOjdj0jA3BiQba7HuCahhztu5fWR2XrVTi0LpkGIhorRP5v1Tf31saq/dEoZ0thtncTydSXIoH20dOTOigzLpkHBGiAzR9SHaSADHFjfW6u5KJYXCbnTeU+e5GJxX8S9HH7o8D9BQiNwDF7ebqmZ5IFN6p1U5bK1gOWWmRfu7U7VEc/QEeFBi7vJeUNLfhOilwaQb9zX7Ai4mzxQdiLVFl6oKp5rgSvGGzdVKTkUzoRH0m9Vf+ZGlY2W6unv08/FqwxSCcOxbX6semm1x3eihmENzn/D4eG8Tp45NO81pZt7K8/fabk8ll63wbkGLpMLGrdFOoay4sRHL44Ghg9ClHeqo/6SuI6HYDwLcKNsx9uEdBAIRuMJU/DNCUcidEZzvk="
on_success: change
on_failure: change
on_pull_requests: false