forked from dedalusj/cwmonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (55 loc) · 4.51 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
services: docker
language: go
go:
- 1.11.x
os:
- linux
dist: trusty
sudo: false
env:
global:
- GO111MODULE=on
- REGISTRY_USER=dedalusj
- secure: UzTlCKI77kM8U/M63IM/o75XYs4krBa7dgDc89BKhBGrAwxtUW2WDdoIN7lg7Eh/x9afEQs2aC9HTKtQfbwDSpVKFEqmPsVsWf1WUdX11Suh2NWvTWIBgu7wiUqFW0GEV/uYrwTiX9Jm6xPYcfOB/USTPZbGlE047NfIJ+lE1zfVi5Lq2SofjXPLVdhsGzzMb6/NX6P7ebWBTabWm4SoBhqgqfmkrkJEDvBHYZ8bAIBSipVTR6kjyzsE2b7fZigMR+nNxKNpphq4qf9J7MhiJGPAZPyfLX/LiEmS4JE5D+Id4k1iJEooZUM6kkTJouDJ37aBPUPKtRkrrOYE9xfzVNwJDUIa9+iPc0Hfu85jDqu05HsW+KW9Bwm2IUmqGBVgUb/6WTzCIai657q2KbQeQnQ/5H2PmWX9rVaTlhtCfNSMJG2+ACBizGsn9BQEmAKNa8RufjMhIwSyzrDy4pc5nHmmw1lSv+s65K7EcsO5oOiy4ZCx/wNlYdY8bce2ArpnzndsjDXTwk/KjF7XWWVOqfqzUv0TjfVaB6355Rr+/phzbM8VFi2Drl0pV6m4jhYeFJ3NJ+UuIHM4rWyAVp1Go6AXsNVMsqUbcybLeYwLwBXVy6vK/rWZCdmfvSfUX0fgX0AD4IRpnE64cFDl1pUi7/fGPLfN9SrlaKkIDgxHTdM=
- secure: ArjQQfwMHywB0KzHfHSCmqufL3odQss6lrL1QvtoDCjNXGort8cFBbsNKEUMHubozskX1rwiVXDIJFPXbI9WSwDzit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qkMHVS7t2vN8eE8aPVchm9c6eA5ZGBIYjzd3ixwa0OYTvpx0TApHeOlYIw1SjxQBC7UiK59bW0vrcjVYpLxVtu0fK7bGwhfTd/wETk2lqkR6Wu+Ugy+ngqI/ZHZTqvdA9poXM3FdPdGWW+8yhP49XX6N9ZoCYvhZSJHUjf6iphViqG3WqbOrqpI=
- secure: lPwviTSH07hwHm5ES9agguLndc4kQNQNkf7MB4bXIYiuZH8YVpFq1m+mQtUSQS85CXpPCQF7Avb3oBRrdkAb2b0vHeZjWQd8SQGRgXNi4Ic+ksBcrSP91qKtYQk3rIVkhnnJUkj+LpKsdEN1+QecfZlQJ8LRO+i7lnKe4TF5SnbddbNI5G941zeF8xPWz3paNl9clc5PfTZ5PDPmzjUjgjTHipO7Bcy5a/PD5a3Hhq0pvsG0jMHbkX67uyxqsQx4Yv6Vo0rRTg7s0IQBlQncD9vY7KwBwQRa82yR0h0GlMDJLhGBQBRM4dt1YyaMpz1lNfOOxRfTcUj4s/3wn/RDEqA3DZ0j5/JWrS83dmbKIPR33+g/4sxIxpxZ2kH0Bzr86SuGrrlX+xKqoou8dlrr03mDhC7VJ6As9wePmH4zW0kA5AeGg5dfEPn8tQAVuWv3TbrMGnIyuEwlkCgBop/0MD1nR1N73LY5armTk/TO5I/6qmph0uIch/si5unb3/Pkk8m0QydmLKW+JjZq2Y4+brd/NLl2cOT6PSVmSal0ClxyC1olXJJHvV2lJkVzhp3jIQG0UqJ84Tup6e1HFkI3s/BqKuuqfzwoWSFEnj1N3AlnRDVk6nqXFn1ijR0RAMoXdkquLai6mgAyKikvdEfYqLTnGw2Hms/K+joOOO2sj54=
- AWS_DEFAULT_REGION=ap-southeast-2
install: true
notifications:
email:
on_success: change
on_failure: change
jobs:
include:
- stage: Unit Test
script:
- make build
- make coverage
- cp .coverage.out coverage.txt
- bash <(curl -s https://codecov.io/bash)
- stage: E2E Test
script:
- sudo apt-get install -y jq libffi-dev libssl-dev
- pip install --user awscli
- make e2e
if: tag IS present
- stage: Deploy
if: tag IS present
script:
- make build
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD"
deploy:
- provider: releases
api_key:
secure: YmX2RizTuIj9E+82oAd8VVNypMZMcw3myuumPjd+dHXy1MkCSI1GLx5Sqay2EqChGt+45B2Ov/J8VLFGKzPaciAC4aybHc+Q0RZiyIr4slg2bwqsB3HM1k8XUBhPeeSt7hRMZg+vMvDPTDJUFxf/k39XlUbPTGWfTBFeJceZnDUQxpI85xxASDohHg6GP8a/EefDcGyUvjyul68rS0gST2SNFb/f5GsH3potUfGqoJK45EwG16bQlLTYSmAJFEhAH7xNJ6PHcShOgCLrHThZ+LO6857temwfRQmRpvhKJF+W6uJzU1Hhv79rJwnxlhlWDbeWHgyGuDP1sQTbRqH0yHnrY9RXOVXd2LJ8julEe/jMLX948lm9dwx68xSs8zu5b3ve5W6Xz6TXRqrhhxaTCBM9NNkUmRlhcvG5kPYiUrsSFo97w5Go7Q8AYqZhSMy4fME2MjTu66zbn+Typh/a2YdBfcquqesIb/CvTFLV+kuV1raERVZvUd3QcCqtWzgf0s26yhaAF8Rw6qo9l4DX3yuOUAdcBgLSJRral3Y1bxrAjfYvFcbmdxn2POV1uzk+eD00YKH0fpsEkAB5j0yWFgC74DUWbnzOw11tOE1nOFPLwxqhjSKrI+89dgoThs1exSivLTdxcWqfwyreyrBwVAy0DkCsVB2Lp2ZIKzBdiRE=
file: cwmonitor
skip_cleanup: true
on:
tags: true
- provider: script
script: make push BUILD_NUMBER=${TRAVIS_BUILD_NUMBER}
skip_cleanup: true
on:
tags: true