forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (56 loc) · 1.49 KB
/
.travis.yml
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
language: python
cache: pip
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- gcc-4.9-multilib
- g++-4.9-multilib
- libgtk2.0-0
- libx11-dev
- libxkbfile-dev
- libsecret-1-dev
- python-dev
matrix:
include:
# # Use the built in venv for linux builds
- os: linux
python: 2.7
- os: linux
python: 3.6
# # # Use generic language for osx
# - os: osx
# language: generic
# env: PYTHON=2.7.10
# # Use generic language for osx
# - os: osx
# language: generic
# env: PYTHON=3.6.1
# Perform the manual steps on osx to install python 2.7.1 and 3.6.1 and set it as the global interpreter.
# This way when the node unit tests will pick the right version of python (from global)
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 submodule update --init --recursive
git clone https://github.com/creationix/nvm.git ./.nvm
source ./.nvm/nvm.sh
nvm install 7.2.1
nvm use 7.2.1
npm config set python `which python`
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
pyenv install $PYTHON
pyenv global $PYTHON
fi
export TRAVIS_PYTHON_PATH=`which python`
install:
- pip install --upgrade -r requirements.txt
- npm install
- npm run vscode:prepublish
script:
- npm test --silent