-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
41 lines (36 loc) · 1.05 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
matrix:
include:
- language: go
go: 1.16.x
install: true
script:
- ./test.sh
deploy:
# deploy binaries
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
# deploy API
- provider: heroku
api_key: $HEROKU_PRODUCTION_API_KEY
app: $HEROKU_APP_NAME
after_deploy:
- go get -u github.com/go-phie/gophie
- gophie version
- language: node_js
node_js: 10
env:
- REPLACE="#!\/usr\/bin\/env\ node"
script:
- npm i -g @stoplight/cli@3.0.1
- sed -i "1s/.*/$REPLACE/" $(npm config get prefix)/lib/node_modules/@stoplight/cli/bin/stoplight.js
deploy:
# deploy docs
- provider: script
skip_cleanup: true
script: $(npm config get prefix)/bin/stoplight publish --token $STOPLIGHT_TOKEN --url https://stoplight.io/api
notifications:
email: false