forked from microclimate-dev2ops/microclimate-vscode-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (67 loc) · 3.31 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
71
72
73
74
75
76
77
78
79
80
env:
global:
- do_artifactory_deploy="true"
- user_name="devexbld"
- user_email="devexbld@us.ibm.com"
- artifactory_url="https://sys-mcs-docker-local.artifactory.swg-devops.com/artifactory/sys-mcs-docker-local/microclimate-vscode/"
- secure: FA7K+PfQh4DOHnSGBYORZcj816+wrryFv3GBvYBHbXAd27Or0V8PyTRxm6SEwL79wC9EtNla8r0OZ/xZHMGYn86JFEGQNYvMWZXxH7nom4cV85tQTL2RIbQPC4U8TjEbQDr1aEj1O97SFjw/UfgIjcs1Kuuxu/VNx4zWO1Wcs8xbvXiuQAveWraCLV41ZEpzJrCm7ljnwBGpKTJ1fb3odneBngDBWw6ilJNkyZ0/Y4KJxuBG/H0YYAdyf4Z26JuAgdOcqvSZ1L1qIp5t4NRTuE9nhg0bnL2aAXvUq3DKK4twpAxaCNz+31qy6WeNYvhHvK0+mVXze7O0d35/tpq1NV7ta6q02WCh570KBrsEO57Lb0PbSSOm+37z5GBRAXDUrwTRZgKXI9BdlFeJ2DYzwv+nVaJrUkxOuWgGJzsJ/EZBf3XBiIFHvLqq/lTnf1Zfo0JoLIgBQqtG4uKg3NUzGl7b5KytBCcYVJGA52QwfyxKfAi0Dg8ts6wVDjAt0eVjpdeDTavXG0PeFyZ+vNofEfC1FkXaMJv03yOd4UMMcipGgJScSg18YqhU6rmeglLW9i6GzqbdfIA/2N3vnd1XGOjyAyS8GzvtLY5kylKFpQpdswvjw8LB1NCT+jmqZoEWPvtlG7Sv0iRf9K238Xc6Qc6nXYaiPMQEgoAusToJ3CQ=
- secure: kbpIOMjRjd7pnLn6bj6aIBs3dojVPzpz6Q4HhlnFBcvfUCCMiNZZXn2p66IHl724aS4NUocWv2zwypJGivmCvIWi9QxQ5WJWRTqlF4AvQxgRDUen0c5wDZ9+X/J1PthvnS2a21Yq1vwMJmnXjonlQ2ZpeEy7bJUB+cbofvckR1Qe6FEBWXWVTvv59JrqyqjMu9e1aUYXF8qlEUUBF3NF1V8AewyHg51Y7h7Ngn7nCeGkc0mgc5HVLnkhKCuOW3DT3hjgpwiCWkkrLsDgCscgI9Hv0EJKliHSOkwsENYMaSM29ZUYcusiraYxl369FwH6KTYw35jG+PL0Sj7lD6uQiOxwZWX2PZ+dbvlEUsATyzrfwghuyVkG7vaCPdpm0dK0FfMgVsd+tPlvgUWLfJ1lHpkOxiLXwg5eDQ3Tn60iU143DuCEGytx8jCaUbKz27nYLbtNDYDvz8AziHEL7//v25QPnDKbfwF34+vfYD6PwvAeQXEZeBfGJM1SyuNNdyGSP5tsPv4wTXSte3jmgcwcOgd+su31L//krTGoivoeS4MVE7f0PVLx7V3Xc6/3hUewXyGnb0FGydKMYx6LIYQzsFov0Ap/mk2QUQSz6ix1yzuVAVRcpBk/UVxKhA2B+A6aqPpLOEL7H/U5ifu4YJzz94B6UY1Tzs8hY1kny5O/hYM=
branches:
only:
- master
notifications:
email:
recipients:
- timetchells@ibm.com
- devexbld@us.ibm.com
on_success: change
on_failure: change
os:
- linux
language: node_js
node_js:
- '10'
before_install:
# Copy the LICENSE into the extension directory, so it is included in the build
- cp -v LICENSE dev
- cd dev
- npm i -g vsce
- npm i
# Make sure compilation will succeed (vsce package won't show the compilation failures)
# Fail the build if compile fails
- npm run compile
# Run the linter, could switch to lint-f to not fail the build
- npm run lint
script:
- vsce package
after_success:
- git config --local user.name "$user_name"
- git config --local user.email "$user_email"
- export tag="nightly-$(date +'%F-%H%M')"
- export artifact_name="$(basename *.vsix)"
# Will resolve to something like "microclimate-tools-18.12.0_nightly-2018-12-07.vsix"
- export tagged_artifact_name="${artifact_name/.vsix/_$tag.vsix}"
# Back to repo root
- cd ..
- cp -v dev/*.vsix "./$tagged_artifact_name"
- ./publish-artifactory.sh || true
#before_deploy:
#- git config --local user.name "$user_name"
#- git config --local user.email "$user_email"
#- export TRAVIS_TAG="nightly-$(date +'%F-%H%M')"
#- git tag $TRAVIS_TAG
#- export artifact_name="$(basename *.vsix)"
## Will resolve to something like "microclimate-tools-18.12.0_nightly-2018-12-07.vsix"
#- export tagged_artifact_name="${artifact_name/.vsix/_$TRAVIS_TAG.vsix}"
# Back to repo root
#- cd ..
#- cp -v dev/*.vsix "./$tagged_artifact_name"
#- ./publish-artifactory.sh || true
#deploy:
#on:
#branch: master
#condition: $TRAVIS_EVENT_TYPE = cron
#provider: releases
#api_key: "$gh_apikey"
#file: "$tagged_artifact_name"
#skip_cleanup: true