This repository has been archived by the owner on Sep 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
66 lines (66 loc) · 3.52 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
58
59
60
61
62
63
64
65
66
language: go
matrix:
allow_failures:
- os: osx
include:
- os: linux
dist: trusty
sudo: required
go:
- 1.8.x
- os: osx
language: ruby
osx_image: xcode9
install:
- bash scripts/travis-install.sh
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export GOPATH=$(pwd)/go; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$PATH:$GOPATH/bin; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd go/src/github.com/mcpr/mcpr-cli; fi
- bash scripts/build.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bash scripts/build-docs.sh; fi
deploy:
- provider: script
script: bash scripts/publish.sh
skip_cleanup: true
- provider: pages
skip_cleanup: true
local_dir: docs-site
github_token: "$GITHUB_TOKEN"
on:
branch: master
condition: $TRAVIS_OS_NAME = linux
- provider: s3
access_key_id: AKIAIJT6AK44UZASIF3Q
secret_access_key:
secure: C2Gr1XfpVdMscoBydXCg6PZDY6TBqFLvdSd/NnZCqhRlpBN9qMbT2xs69ucsxc/lAfappZCPrTM2RQj0ORBWzZjrLOZsczH4TZra4MmJ0PXPxGds72/zI1WjcRGYchlFR8aTmHNqls7eI6xmM6KHgWNMhFw4zE5Bf/8DxtMwzlN2do+RBdbOIYd0tPPksjlA2zi/wjEkj0ZKo/fQB5qCdIJSevrOzZhkQt/zUwJ6bMXfwp6/DvQpMEvH4J4lkXQtzYBBm0dJFBXxfKG9cqO5xfkfpxPSXQJT/oNu8hj/AYZHjdp6klYJnqpB+HJHj8lNiFSwh2OccL64I6igTataDEvrDNa7+WzPfqizL/ZsPlhWqYNW4myhIsi8IUXhj3hJGf8L2qZgclxYOEprWFe3whFpwjXGkcVMwQ67fuf6isjYrKnH2d5+XeIN9OUyPl8WFNv04jWJPN4P3Ky+Vlx3jltyU50A+wvzAyuERXzoCBrf9ezm0WjpbFFlVvJlCTiOw89qD9mtVCAVBaFX//suTKo+kIirXYGpYQboHIIt713YGVAj2pHft4WocyGD2IlvI9ZPzPKlDHfZW3hotyqnl9wTEjTUasmpGOHBN6j6DPcX1XPzr/kpL/+os12A40ASKNaKBuKx4y/CdvFvNTRFVdViaRg9od5atwpPDmyfZI0=
bucket: get.mcpr.io
region: us-east-2
local-dir: bin
upload-dir: artifacts
acl: public_read
skip_cleanup: true
on:
branch: master
- provider: s3
access_key_id: AKIAIJT6AK44UZASIF3Q
secret_access_key:
secure: C2Gr1XfpVdMscoBydXCg6PZDY6TBqFLvdSd/NnZCqhRlpBN9qMbT2xs69ucsxc/lAfappZCPrTM2RQj0ORBWzZjrLOZsczH4TZra4MmJ0PXPxGds72/zI1WjcRGYchlFR8aTmHNqls7eI6xmM6KHgWNMhFw4zE5Bf/8DxtMwzlN2do+RBdbOIYd0tPPksjlA2zi/wjEkj0ZKo/fQB5qCdIJSevrOzZhkQt/zUwJ6bMXfwp6/DvQpMEvH4J4lkXQtzYBBm0dJFBXxfKG9cqO5xfkfpxPSXQJT/oNu8hj/AYZHjdp6klYJnqpB+HJHj8lNiFSwh2OccL64I6igTataDEvrDNa7+WzPfqizL/ZsPlhWqYNW4myhIsi8IUXhj3hJGf8L2qZgclxYOEprWFe3whFpwjXGkcVMwQ67fuf6isjYrKnH2d5+XeIN9OUyPl8WFNv04jWJPN4P3Ky+Vlx3jltyU50A+wvzAyuERXzoCBrf9ezm0WjpbFFlVvJlCTiOw89qD9mtVCAVBaFX//suTKo+kIirXYGpYQboHIIt713YGVAj2pHft4WocyGD2IlvI9ZPzPKlDHfZW3hotyqnl9wTEjTUasmpGOHBN6j6DPcX1XPzr/kpL/+os12A40ASKNaKBuKx4y/CdvFvNTRFVdViaRg9od5atwpPDmyfZI0=
bucket: get.mcpr.io
region: us-east-2
local-dir: bin
upload-dir: artifacts
acl: public_read
skip_cleanup: true
on:
tags: true
- provider: releases
api_key:
secure: fCkR5bKDQTfo1iUWE0PMh+8z265U83kSSihMSgj1x/9gcAXWK6InVekdkc2PIuJHceGQMKRwhJP4PV50GNofGk3QxO8/aYAGn7+efjZ2KgEXgZ1Tlq7uEom1zbkUu0yQj9Q1DmrMMTrQXBlXS74CKylPM42zgLb6qg+McSF6gcGYDYBHOYguh1wvDOlJAjafhaMy4J/mnVp1ca1QS1SVevSHG/VCV0OLIDSxysxFVgj9ZHrMnPzs9FAcuIqfGeSjaqXAVXygYRhJntGPSwResq313C8bDKgGbJo6GOWIBBbVgjQhKDLu3AIqnCxhUkl86WF2vPXnsWqdqPOmne2W32VD6gxvWnxb7/gfjK6zOPqhZO30ky6Dhh/Yi1QSuRhNOMalIRjLxKkl06VC9QED39TkJKZXeHLIZb/LYC9ICSJ5eEFgd2oj1tpWrbo1DDG99S4JhWstHDrqY4QzbQOvFM57L6QypFMsdDjF+jIT3jICcfCN9ObhOcgx4JRWKZ6L/5IsI3G/G+Cvc40inyawxKJq84jbUD/8pQrerR2vzxizAG8RcuFFpZN+xlYReFXkT/qzmMLBVBcue/YGdz5qaTjp51MEXvf+gWB+TsD6ocho41k8Hgwy6XkGSv7lJ8CmqpQXjLpwmSEWpdW7VREQqLBJfnjv1A68Yo+zDfcp7v4=
file_glob: true
file: github-release/*
skip_cleanup: true
prerelease: true
on:
tags: true
repo: mcpr/mcpr-cli