forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
131 lines (129 loc) · 4.15 KB
/
.travis.yml
File metadata and controls
131 lines (129 loc) · 4.15 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
124
125
126
127
128
129
130
131
language: python
cache:
pip: true
directories:
- $HOME/.npm
- node_modules
git:
depth: 20
matrix:
include:
- os: linux
python: "2.7"
env: UNIT_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_RELEASE=true
- os: linux
python: "3.6-dev"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: MULTIROOT_WORKSPACE_TEST=true
- os: linux
python: "3.6-dev"
env: PERFORMANCE_TEST=true
- os: linux
python: "3.7-dev"
env: DEBUGGER_TEST_RELEASE=true
- os: linux
python: "3.7-dev"
env: SINGLE_WORKSPACE_TEST=true
- os: linux
python: "3.7-dev"
env: MULTIROOT_WORKSPACE_TEST=true
- os: linux
python: "3.7-dev"
env: BUNDLE=true
- os: linux
python: "3.7-dev"
env: FUNCTIONAL_TEST=true
- os: linux
python: "3.7-dev"
env: CHECK_BUNDLE=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
npm install npm@latest -g
npm install -g vsce
export CI_PYTHON_PATH=`which python`
install:
- travis_wait 5 npm ci
- npm run clean
- npx gulp prePublishNonBundle
- python -m pip install --upgrade 'pip<19'
- python -m pip install --upgrade -r ./build/test-requirements.txt
- npx gulp installPythonLibs
script:
- if [ $UNIT_TEST == "true" ]; then
npx gulp compile;
npm run cover:enable;
npm run test:unittests:cover;
fi
- if [ $DEBUGGER_TEST_RELEASE == "true" ]; then
npm run cover:enable;
npm run testDebugger --silent;
fi
- npm run debugger-coverage
- if [ $FUNCTIONAL_TEST == "true" ]; then
python -m pip install --upgrade -r ./build/functional-test-requirements.txt;
npm run test:functional:cover;
fi
- if [ $SINGLE_WORKSPACE_TEST == "true" ]; then
npm run cover:enable;
npm run testSingleWorkspace --silent;
fi
- if [ $MULTIROOT_WORKSPACE_TEST == "true" ]; then
npm run cover:enable;
npm run testMultiWorkspace --silent;
fi
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && "$PERFORMANCE_TEST" == "true" ]]; then
npm run testPerformance --silent;
fi
- if [ "$TRAVIS_PYTHON_VERSION" == "3.7" ]; then
python3 -m pip install --upgrade -r news/requirements.txt;
python3 news/announce.py --dry_run;
python3 -m pip install --upgrade -r tpn/requirements.txt;
python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;
fi
- if [[ $BUNDLE == "true" && $AZURE_STORAGE_ACCOUNT && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
npm run clean;
npm run updateBuildNumber -- --buildNumber $TRAVIS_BUILD_NUMBER;
npm run package;
npx gulp clean:cleanExceptTests;
npm run testSmoke;
npx gulp uploadDeveloperExtension;
fi
- if [[ $BUNDLE == "true" && $AZURE_STORAGE_ACCOUNT && "$TRAVIS_BRANCH" == release* && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
npm run clean;
npm run updateBuildNumber -- --buildNumber $TRAVIS_BUILD_NUMBER --updateChangelog;
npm run package;
npx gulp clean:cleanExceptTests;
npm run testSmoke;
npx gulp uploadReleaseExtension;
fi
- if [[ $CHECK_BUNDLE == "true" ]]; then
npm run clean;
npm run updateBuildNumber -- --buildNumber $TRAVIS_BUILD_NUMBER;
npm run package;
npx gulp clean:cleanExceptTests;
npm run testSmoke;
npm run verifyBundle;
fi
- bash <(curl -s https://codecov.io/bash)