File tree Expand file tree Collapse file tree 2 files changed +43
-44
lines changed
Expand file tree Collapse file tree 2 files changed +43
-44
lines changed Original file line number Diff line number Diff line change 11distro : Xenial
2+ env :
3+ matrix :
4+ secure : FA7K+PfQh4DOHnSGBYORZcj816+wrryFv3GBvYBHbXAd27Or0V8PyTRxm6SEwL79wC9EtNla8r0OZ/xZHMGYn86JFEGQNYvMWZXxH7nom4cV85tQTL2RIbQPC4U8TjEbQDr1aEj1O97SFjw/UfgIjcs1Kuuxu/VNx4zWO1Wcs8xbvXiuQAveWraCLV41ZEpzJrCm7ljnwBGpKTJ1fb3odneBngDBWw6ilJNkyZ0/Y4KJxuBG/H0YYAdyf4Z26JuAgdOcqvSZ1L1qIp5t4NRTuE9nhg0bnL2aAXvUq3DKK4twpAxaCNz+31qy6WeNYvhHvK0+mVXze7O0d35/tpq1NV7ta6q02WCh570KBrsEO57Lb0PbSSOm+37z5GBRAXDUrwTRZgKXI9BdlFeJ2DYzwv+nVaJrUkxOuWgGJzsJ/EZBf3XBiIFHvLqq/lTnf1Zfo0JoLIgBQqtG4uKg3NUzGl7b5KytBCcYVJGA52QwfyxKfAi0Dg8ts6wVDjAt0eVjpdeDTavXG0PeFyZ+vNofEfC1FkXaMJv03yOd4UMMcipGgJScSg18YqhU6rmeglLW9i6GzqbdfIA/2N3vnd1XGOjyAyS8GzvtLY5kylKFpQpdswvjw8LB1NCT+jmqZoEWPvtlG7Sv0iRf9K238Xc6Qc6nXYaiPMQEgoAusToJ3CQ=
25
36branches :
47 only :
5- - master
8+ - master
69
710notifications :
811 on_success : change
912 on_failure : change
1013
1114os :
12- - linux
15+ - linux
1316
1417language : node_js
15-
1618node_js :
17- - " 10 "
19+ - ' 10 '
1820
1921before_install :
20- # Copy the LICENSE into the extension directory, so it is included in the build
21- - cp -v LICENSE.* dev
22-
23- - cd dev
24- - npm i -g vsce
25- - npm i
26-
27- # Make sure compilation will succeed ( vsce package won't show the compilation failures >:( )
28- # Fail the build if compile fails
29- - npm run compile
30- # Run the linter, but don't let that block the build (might change this later)
31- - npm run lint-f
22+ # Copy the LICENSE into the extension directory, so it is included in the build
23+ - cp -v LICENSE.* dev
24+ - cd dev
25+ - npm i -g vsce
26+ - npm i
27+ # Make sure compilation will succeed (vsce package won't show the compilation failures)
28+ # Fail the build if compile fails
29+ - npm run compile
30+ - npm run lint-f
3231
3332script :
34- - vsce package
35-
36- after_success :
37- - cd ..
38- - ./publish.sh
39-
40- # before_deploy:
41- # # cwd back to repo root
42- # - cd ..
43- # - cp -v dev/*.vsix .
44- # - export artifact_name="$(basename *.vsix)"
45- # - git config --local user.name "tetchel"
46- # - git config --local user.email "[email protected] "47- # - export TRAVIS_TAG="nightly-$(date +'%F_%H-%M_%Z')"
48- # - git tag $TRAVIS_TAG
49- #
50- # deploy:
51- # on:
52- # branch: master
53- # condition: $TRAVIS_EVENT_TYPE = cron
54- # provider: releases
55- # api_key: ???
56- # file: $artifact_name
57- # skip_cleanup: true
33+ - vsce package
34+
35+ before_deploy :
36+ - git config --local user.name "devexbld"
37+ -
git config --local user.email "[email protected] " 38+ - export TRAVIS_TAG="nightly-$(date +'%F')"
39+ - git tag $TRAVIS_TAG
40+ - export artifact_name="$(basename *.vsix)"
41+ - export tagged_artifact_name="${artifact_name/.vsix/$TRAVIS_TAG.vsix}"
42+ - cd ..
43+ - cp -v dev/*.vsix "./$tagged_artifact_name"
44+ - " ./publish.sh"
45+
46+ deploy :
47+ on :
48+ branch : master
49+ provider : releases
50+ api_key : " $gh_apikey"
51+ file : " $tagged_artifact_name"
52+ skip_cleanup : true
53+
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# To be run from the repository root directory
4+ # $tagged_artifact_name must be set and the file it points to must be in the working directory
45
5- set -ex
6+ if [[ " $do_artifactory_deploy " != " true" ]]; then
7+ echo " $( basename $0 ) : do_artifactory_deploy is not set to 'true', skipping."
8+ exit 0
9+ fi
610
7- cp -v dev/ * .vsix .
11+ set -ex
812
913build_info_file=" build_info.txt"
10- artifact_name=" $( basename * .vsix) "
1114build_date=" $( date +' %F_%H-%M_%Z' ) "
1215
1316commit_info=" $( git log master -3 --pretty=' %h by %an - %s' ) "
1417
1518# Artifactory upload
1619printf " $build_date \n$commit_info " > " $build_info_file "
17- curl -u " $artifactory_username :$artifactory_apikey " " $artifactory_url /$artifact_name " -T " $artifact_name " -X PUT
20+ curl -u " $artifactory_username :$artifactory_apikey " " $artifactory_url /$tagged_artifact_name " -T " $tagged_artifact_name " -X PUT
1821curl -u " $artifactory_username :$artifactory_apikey " " $artifactory_url /$build_info_file " -T " $build_info_file " -X PUT
You can’t perform that action at this time.
0 commit comments