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
48 lines (46 loc) · 1.31 KB
/
.travis.yml
File metadata and controls
48 lines (46 loc) · 1.31 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
language: python
sudo: required
matrix:
include:
# Use the built in venv for linux builds
- os: linux
sudo: required
python: 2.7
- os: linux
sudo: required
python: 3.5
# 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.5.1
# Perform the manual steps on osx to install python3 and activate venv
before_install: |
git submodule update --init --recursive
git clone https://github.com/creationix/nvm.git ./.nvm
source ./.nvm/nvm.sh
nvm install 6.6.0
nvm use 6.6.0
npm config set python `which python`
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install openssl readline
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
brew install pyenv-virtualenvwrapper
pyenv install $PYTHON
pyenv virtualenv $PYTHON MYVERSION
source ~/.pyenv/versions/MYVERSION/bin/activate
python --version
python -c 'import sys;print(sys.version)'
python -c 'import sys;print(sys.executable)'
fi
install:
- pip install -r requirements.txt
- ./scripts/npm.sh install
- npm run vscode:prepublish
script:
- npm test --silent