forked from dbaumgarten/yodk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (60 loc) · 1.57 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
language: go
go: 1.14
dist: bionic
services:
- xvfb
env:
- NODE_VERSION="8.10" GO111MODULE=on
before_install:
- nvm install $NODE_VERSION
install:
- go mod download
- cd vscode-yolol && npm install && npm install -g vsce && cd ..
before_script:
- export DISPLAY=:99.0;
script:
- go test ./...
- go build -ldflags "-X github.com/dbaumgarten/yodk/cmd.YodkVersion=${TRAVIS_BRANCH}"
- ./yodk version
- GOOS=windows go build -ldflags "-X github.com/dbaumgarten/yodk/cmd.YodkVersion=${TRAVIS_BRANCH}"
- GOOS=darwin go build -o yodk-darwin -ldflags "-X github.com/dbaumgarten/yodk/cmd.YodkVersion=${TRAVIS_BRANCH}"
- cd vscode-yolol
- npm run vscode:prepublish
- npm test --silent
- cd ..
- ./build-changelog.sh
before_deploy:
- cp CHANGELOG.md vscode-yolol/
- cd vscode-yolol
- npm version --no-git-tag-version $(echo ${TRAVIS_TAG} | tr -d v) --allow-same-version
- vsce package
- cp *.vsix ../vscode-yolol.vsix
- cd ..
- zip yodk-win.zip yodk.exe
- zip yodk-linux.zip yodk
- zip yodk-darwin.zip yodk-darwin
- ./build-docs.sh
deploy:
- provider: releases
api-key: $GITHUB_TOKEN
file:
- yodk-win.zip
- yodk-linux.zip
- yodk-darwin.zip
- vscode-yolol.vsix
skip_cleanup: true
edge: true
release_notes_file: "CHANGELOG.md"
on:
tags: true
- provider: script
script: cd vscode-yolol && vsce publish -p ${VSCODE_MARKETPLACE_TOKEN}
skip_cleanup: true
on:
tags: true
- provider: pages
local_dir: docs
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master