Skip to content

Commit 2c08473

Browse files
committed
Add support for building using bump.
1 parent a73bf10 commit 2c08473

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.travis.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ addons:
1616
env:
1717
global:
1818
- TEST_RESULTS_FILE=test-results.xml
19-
- RELEASE_BRANCH=feature/automated_releases
20-
- GITHUB_REPO=
2119

2220
before_install:
2321
- export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0
@@ -33,12 +31,7 @@ script:
3331
- sonar-scanner
3432

3533
before_deploy:
36-
- git config --global user.email "[email protected]"
37-
- git config --global user.name "Travis CI"
38-
- npm version patch -m "Bumping to %s"
39-
- git push && git push --tags
4034
- export PACKAGE_VERSION=$(node -p "require('./package.json').version")
41-
- export TRAVIS_TAG=v${PACKAGE_VERSION}
4235
- npm run package
4336

4437
deploy:
@@ -49,9 +42,9 @@ deploy:
4942
skip_cleanup: true
5043
name: "Version $PACKAGE_VERSION"
5144
on:
52-
branch: $RELEASE_BRANCH
45+
tags: true
5346
- provider: script
5447
script: npm run publish -- -p $VSCE_TOKEN --packagePath *.vsix
5548
skip_cleanup: true
5649
on:
57-
branch: $RELEASE_BRANCH
50+
tags: true

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@
235235
"lint": "tslint -p .",
236236
"test": "node ./node_modules/vscode/bin/test",
237237
"postinstall": "node ./node_modules/vscode/bin/install",
238+
"bump": "npm version patch -m \"Bumping to %s\"",
238239
"modclean": "node ./build/removeFiles . .vscodeignore",
239240
"package": "vsce package",
240241
"publish": "vsce publish",

0 commit comments

Comments
 (0)