-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
47 lines (43 loc) · 1.98 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
dist: bionic
language: node_js
node_js:
- "12"
stages:
- lint
- deploy
jobs:
include:
- stage: lint
name: EditorConfig Syntax Verification
install:
- npm install -g eclint
- eclint --version
script: eclint check
- stage: lint
name: Project Syntax Verification
script: make && make docker/run target=lint
- stage: deploy
if: branch = master AND type = push AND repo = plus3it/tardigrade
before_script:
- |
PRIOR_VERSION=$(git describe --abbrev=0 --tags)
RELEASE_VERSION=$(grep current_version $TRAVIS_BUILD_DIR/.bumpversion.cfg | sed 's/^.*= //' )
RELEASE_BODY="* [tardigrade v$RELEASE_VERSION CHANGELOG](https://github.com/plus3it/tardigrade/blob/$RELEASE_VERSION/CHANGELOG.md)"
export PRIOR_VERSION RELEASE_VERSION RELEASE_BODY
script: skip
before_deploy:
- |
(set -x; git tag -a $RELEASE_VERSION -m $RELEASE_VERSION)
deploy:
provider: releases
api_key:
secure: t0IQ1E0dpTCN6Od5h/GS40oJrnd77VhW0JkE0WV6v3fnHEgETD8gqucrrbs0l7WCF/cBtGXqmusbNf2Bdd+8VuORT4X3E0KmU7KdxIC+sDsdZxHxQAvghf9kI1WrA8U0J/MHPRfRFonqxAcmvL7Gdxgz02cspMZT7WyE+lIU9mXb4qvudNzVoD0rGnhJPwI9l01wu0YCFzd5T6YhATy14/KbsPcQcHHJ5P4tfusSgupduYMNNHhDDeUg16ZQEl4/Bohc1ymj1pI5jU0H5yq4GqRE61k0N9hTpnZIHm5Ref+cYOY3jJzAPu0Ge13qD+ywztc/EnluNwekw9UTryAkn+nNrbKpujOeJxfyYDYusYTYYXX0Dq5cZS6nhsRCL87MW2o6njNW0MRQO5UeFxz7XZj/IMzgYL4w+k8eBZVakaap+VPWdRx1joAH2xscCXB69U4GgowHYERD0Sc4JYITdVuAwkpiFFzFDNyDnjtaDDa5/05tp4Onbupnqzs1cbCVimbSE+hpuvSPPO/XNBCKYXKZVZ3GyfER6npQNAZREAUiUd1e0K0ddQ+nt88PT4qNv+/fTEVTwFyRTP+5wbSht+3ffrt9cYK3u1Jr665OUNILDXeWbFzDok9Y8xHmog0Q5bd+dnPbywdn2lExy0NrBd1tae7E0YS/1yDDWnUBv1U=
name: $RELEASE_VERSION
body: $RELEASE_BODY
tag_name: $RELEASE_VERSION
target_commitish: $TRAVIS_COMMIT
draft: false
on:
branch: master
repo: plus3it/tardigrade
condition: '"$PRIOR_VERSION" != "$RELEASE_VERSION"'