forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
123 lines (121 loc) · 3.79 KB
/
.travis.yml
File metadata and controls
123 lines (121 loc) · 3.79 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: python
cache: pip
matrix:
include:
- os: linux
python: "2.7"
env: DEBUGGER_TEST=true
- os: linux
python: "2.7"
env: DEBUGGER_TEST_RELEASE=true
- os: linux
python: "2.7"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "2.7"
env: MULTIROOT_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: DEBUGGER_TEST=true
- os: linux
python: "3.6-dev"
env: DEBUGGER_TEST_RELEASE=true
- os: linux
python: "3.6-dev"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: MULTIROOT_WORKSPACE_TEST=true
allow_failures:
- os: linux
python: "2.7"
env: DEBUGGER_TEST=true
- os: linux
python: "2.7"
env: DEBUGGER_TEST_RELEASE=true
- os: linux
python: "2.7"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "2.7"
env: MULTIROOT_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: DEBUGGER_TEST=true
- os: linux
python: "3.6-dev"
env: DEBUGGER_TEST_RELEASE=true
- os: linux
python: "3.6-dev"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: MULTIROOT_WORKSPACE_TEST=true
before_install: |
if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
git clone https://github.com/creationix/nvm.git ./.nvm
source ./.nvm/nvm.sh
nvm install 8.9.1
nvm use 8.9.1
yarn global add vsce
yarn global add azure-cli
export TRAVIS_PYTHON_PATH=`which python`
install:
- python -m pip install --upgrade -r requirements.txt
- python -m pip install -t ./pythonFiles/experimental/ptvsd git+https://github.com/Microsoft/ptvsd/
- yarn --frozen-lockfile
script:
- if [ $DEBUGGER_TEST == "true" ]; then
yarn run clean;
yarn run vscode:prepublish;
yarn run cover:enable;
yarn run testDebugger --silent;
fi
- yarn run debugger-coverage
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- yarn run clean:ptvsd
- pip install -t ./pythonFiles/experimental/ptvsd ptvsd --pre --no-cache-dir;
- if [ $DEBUGGER_TEST_RELEASE == "true" ]; then
yarn run clean;
yarn run vscode:prepublish;
yarn run cover:enable;
yarn run testDebugger --silent;
fi
- yarn run debugger-coverage
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- if [ $SINGLE_WORKSPACE_TEST == "true" ]; then
yarn run clean;
yarn run vscode:prepublish;
yarn run cover:enable;
yarn run testSingleWorkspace --silent;
fi
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- if [ $MULTIROOT_WORKSPACE_TEST == "true" ]; then
yarn run clean;
yarn run vscode:prepublish;
yarn run cover:enable;
yarn run testMultiWorkspace --silent;
fi
- if [ $TRAVIS_UPLOAD_COVERAGE == "true" ]; then
bash <(curl -s https://codecov.io/bash);
fi
- if [ "$TRAVIS_PYTHON_VERSION" != "2.7" ]; then
python3 -m pip install --upgrade -r news/requirements.txt;
python3 news/announce.py --dry-run;
fi
after_success:
- if [ $AZURE_STORAGE_ACCOUNT ]; then
yarn run clean;
vsce package;
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;
fi