Skip to content

Commit 7a36147

Browse files
authored
Upload buillds to azure (#534)
Upload builds of extension to azure blob storage for every CI on master
1 parent 61a02ed commit 7a36147

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ npm-debug.log
1111
**/.mypy_cache/**
1212
!yarn.lock
1313
coverage/
14+
.vscode-test/**

.travis.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,10 @@ cache: pip
33

44
matrix:
55
include:
6-
# # Use the built in venv for linux builds
76
- os: linux
87
python: 2.7
98
- os: linux
109
python: 3.6
11-
# # # Use generic language for osx
12-
# - os: osx
13-
# language: generic
14-
# env: PYTHON=2.7.10
15-
# # Use generic language for osx
16-
# - os: osx
17-
# language: generic
18-
# env: PYTHON=3.6.1
19-
# Perform the manual steps on osx to install python 2.7.1 and 3.6.1 and set it as the global interpreter.
20-
# This way when the node unit tests will pick the right version of python (from global)
2110
before_install: |
2211
if [ $TRAVIS_OS_NAME == "linux" ]; then
2312
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
@@ -29,10 +18,8 @@ before_install: |
2918
source ./.nvm/nvm.sh
3019
nvm install 8.9.1
3120
nvm use 8.9.1
32-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
33-
pyenv install $PYTHON
34-
pyenv global $PYTHON
35-
fi
21+
yarn global add vsce
22+
yarn global add azure-cli
3623
export TRAVIS_PYTHON_PATH=`which python`
3724
install:
3825
- pip install --upgrade -r requirements.txt
@@ -53,3 +40,9 @@ script:
5340
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
5441
bash <(curl -s https://codecov.io/bash);
5542
fi
43+
after_success:
44+
- if [ $AZURE_STORAGE_ACCOUNT ]; then
45+
yarn run clean;
46+
vsce package;
47+
azure storage blob upload --container $AZURE_STORAGE_CONTAINER --blob ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --file python*.vsix --quiet;
48+
fi

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode/**
2+
.vscode-test/**
23
typings/**
34
out/test/**
45
out/src/**

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,17 @@ the micro version is how many releases there have been that month in
224224
the year (starting at 0). For example, the first release in July 2018
225225
would be `2018.7.0`, the second release that month would be
226226
`2018.7.1`, etc.
227+
228+
### Insiders Build
229+
230+
Starting in 2018, we started publishing the latest development
231+
build of the extension onto a cloud storage provider.
232+
If you are interested in helping us test our development builds or would like
233+
to stay ahead of the curve, then please feel free to download and install the
234+
extension from the following [location](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix). Once you have downloaded the [ms-python-insiders.vsix](https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix)
235+
file, please follow the instructions on [this page](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix) to install the extension.
236+
237+
The insiders build of the extension:
238+
* Will get replcaed with new releases published onto the [VS Code Marketplace](https://marketplace.visualstudio.com/VSCode).
239+
* Does not get updated with new insider build releases.
240+
* Is built everytime a PR is commited into the [master branch](https://github.com/Microsoft/vscode-python).

0 commit comments

Comments
 (0)