-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
70 lines (70 loc) · 1.63 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
67
68
69
70
language: go
branches:
except:
- latest
go: 1.14
dist: bionic
services:
- xvfb
env:
- NODE_VERSION="16.1" GO111MODULE=on
before_install:
- nvm install $NODE_VERSION
install:
- make setup
before_script:
- export DISPLAY=:99.0;
script:
- make all VERSION=${TRAVIS_BRANCH}
- ls -al
before_deploy: |
if [ "${TRAVIS_BRANCH}" == "develop" ] && [ "${TRAVIS_TAG}" == "" ]; then
git tag -f latest
git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
git push -f gh latest
git remote remove gh
else
echo Not updating latest tag
fi
deploy:
- provider: releases
name: Automated build of develop-branch
api-key: $GH_TOKEN
file:
- yodk-win.zip
- yodk-linux.zip
- yodk-darwin.zip
- vscode-yolol.vsix
skip_cleanup: true
edge: true
overwrite: true
prerelease: true
target_commitish: $TRAVIS_COMMIT
tag_name: latest
body: "Use this release ONLY to test not-yet-released changes from the develop-branch. Use a versioned release (see below) for anything else!!!"
on:
tags: false
branch: develop
- provider: releases
api-key: $GH_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: make publish-vsix VERSION=${TRAVIS_TAG} TOKEN=${VSCODE_MARKETPLACE_TOKEN}
skip_cleanup: true
on:
tags: true
- provider: pages
local_dir: docs
skip_cleanup: true
github_token: $GH_TOKEN
on:
branch: master