-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml.off
35 lines (32 loc) · 1.49 KB
/
.travis.yml.off
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
language: go
sudo: false
go:
- 1.13.x
env:
- GO111MODULE=on
stages:
- test
- name: deploy
if: branch = master
jobs:
include:
- stage: test
install: true
script:
- go test ./... -coverprofile=coverage.out -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
services: docker
install: true
script:
#- 'curl -H "Content-Type: application/json;" -X POST -d "{\"PROJECT\": \"$TRAVIS_REPO_SLUG\", \"BRANCH\": \"$TRAVIS_BRANCH\"}" $JENKINS'
- docker run -it
-e JENKINS_AUTH_TOKEN=$JENKINS_AUTH_TOKEN
-e JENKINS_BUILD_TOKEN=$JENKINS_BUILD_TOKEN
-e JENKINS_BUILD_PROJECT=$TRAVIS_REPO_SLUG
-e JENKINS_BUILD_BRANCH=$TRAVIS_BRANCH
p1hub/p1jenkinstrigger
notifications:
slack:
secure: hkwo7KWgmcDt/RT6elI+ff6pqmyByFvgcYnXbaddU/WxujKi4f24QyoN1yf7GQEyva80D2qM5kfO0YyGp5ATF70bsg/uMwupsT74zDe2xrN0MVJdiZ8xCU7PmyrdNtaiK1R8D4Th3beohGsfiV6uMWPs+d5ZqVWTua3JgPM2Gr8pSsYWt0x9AfMREgnqrlP7qaakiDQnTRuYvaZf2B1FezmBOQ2AL87a77Sxo0tqL8HuBeBzj/S7TNIYlpC9iKJf0AysL2Ktt5G60tD/7pc934PkMYN/bWAXx2Rr9nyGOHC6e0S1c9Jm9X4BgbelgsfZUb5Yp6z4mQ+KhNTvCO9MhXKUYhZVG5sH8xQScd2JpZUMGVn1sONyWQTUZ1r9GXrAtFHj8Jf62FZJhELVZtYwBXWa5hkGH9HEkDVU6sC8vHLBzCzvAAULiquycvTNeooi/0eXgGuRco9+EODAPwuBQ6KuffJx+r55BlP3SOsAJbclhAfWioTCYHSQVQLYw5xlVMk3T0FyPDoJQI1jJZWTiTFQxrTWROjWdC/mZOr2PhywyMSRFH2/UXNJ+sN7GybeGLT2CsR8DczfcmL/eeYDqYCtDQqh/rCI1ST1fkSdZKRYT/WQpIRrtT1pYSoPuZW70I5+mwf5HRabLvcQRXeQ1D8j9sLSxjUgLzKFx8eRmOo=