-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
43 lines (40 loc) · 1.8 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
language: go
sudo: false
go:
- 1.12.x
stages:
- test
- name: deploy
if: branch IN (master, develop)
jobs:
include:
- stage: test
services:
- mongodb
- redis-server
install: true
env:
- AUTHONE_DATABASE_USER=travis
- AUTHONE_DATABASE_PASSWORD=test
- GO111MODULE=on
before_script:
- mongo auth-one --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
script:
- go test ./... -coverprofile=coverage.out -covermode=atomic -p=1
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:
email: false
slack:
secure: OJFdeQ3znWtkHgoTT20tuzTvNq25VmQx0AurlIL779YGZ1jopNquEnH8x0u1SDWgUk+vpFxwRoMHRqsrXO6tv3E09XAh+mvjEoSKoJSfV46EAg0gClFtGaDPMAv8M/lZfLllcXXi5NDxEnO1tQoWOKU/CgZNf6Q/fd1iq/SHnMujANXj97r/u20Ikiax0ZE25kVk6V8Xbqeni/1wj70yJWxJPqALVJ/F17soB4xx8wKXIydZ367a8EzHMzkFLcffit1d/5GS5BKdYq0s0XoQZh91T4r/vhdJzxOEW70ANVkDGc8ELF/XsVzadq+7s0UHS5seNwj6nku7B44LcFSnNWvF+lapwYTG+PDrfIt7XImL7V/n+nWxGuuZZOOWpwb122qzLQfj2tzAjufVa/RKAU0oOxpWEBYK0W3SiRphnN4UN3wm5n/4Iav2Kt8j2MEhovXEGUJMdTXeozATEipJrnBWWA0jYhnmEG2H/DEqe73Wg+zpvaJBA5dN7lI5Vr49n/vtCgES1yYbNgefCQTPgEazOQp9V3ovLMBt7Qw3d8d4Y2IJuoYF95gw/i8ZnD4kQ15OPAruDYneU6j2ilKZOkvsf9NjaEopVrdbAXnxTsvqUEkUDtR4lNxhKRyP/cpmU1SCMd4Pa5mValhOV+N3rQQ+fysjUkfMZbYTZ+m4zBw=