-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
28 lines (24 loc) · 1.38 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
sudo: false
dist: trusty
language: python
before_install:
- pip install awscli
jobs:
include:
- stage: build and push ap docker image to aws ecr
script:
- eval $(aws ecr get-login --no-include-email)
- docker build -t $AP_NAME .
- docker tag $AP_NAME:latest $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/ap/$AP_NAME:latest
- docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/ap/$AP_NAME:latest
- stage: run ap tests
script: echo "Test1 Finish"
- stage: deploy ap to aws batch
script: skip
notifications:
slack:
on_pull_requests: true
rooms:
secure: dmaQH4TSJ6143GojCFoXF+HczueNOv8Kv/J4NAyexs9DHcodJBx7tj0hzqwSgHpraYHX/MzVr/4U/IJ2evWB/Y0pyava3tkfA/Nlsims6v0RgaMtqqHct2UCdNvR+jDj9+2EUKqu7R7oUzrqGX6aJYoDDaz2p2Q7tb4RcOn+2WGvH1rQRVB0kdr6cHpn0F18c7qsmlQuLWGCSww5wjBRVTUQm4ZpnSQ7+iBIofytt3dkI6JzCC7wdOlG9mdqM149lpdIHj3FgMXgtOmWtdVkZ/2cSVT/QwH2DrUn8BQj+ovFddUnkPdkxfbunxkcc/oNmnILOGv/PNuDPuT5o4Mm6rNId7NtIbCh9ztnbPIgAjtX2sjUFRs+eMVdibHh2dPtLEbBI1WZ8NBxsp1RFK5hvZpOY0zIsKGUIluWFfkLgdqbcURg2V7QxhBYIIoRBbc3dsdf6dX64Pg7Ue85kh32d85tyZMQXX6/FFrcRUhRPvU8J3ZdnnIc5R/dQWKV6C7ncp5KkVKxHbigKxKpXYUeIPOJYT7Hp0ezpStFcKCI1XsXIbxl8vMX0Xxeljm/SP5NulDPPMO+G8oTotKag15VON8BXaKjRhmAUmeIkKVVSUPP6DyPsAfywW7/Xs8pfi8whVcbbjXYbbIxtDRlECV3zONgiTEwDHK/HGgryZBx4ek=
on_success: always # default: always
on_failure: always # default: always