-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2141 fix travis #1255
#2141 fix travis #1255
Changes from 37 commits
f4922c3
c18c5a4
98db358
e0d39e2
7c1a6ce
476a13d
97d63d5
4db8a05
f9c625e
44d2dde
ad3b1c5
70fa288
1d8e414
925a6e9
af70c95
40416c3
21e132a
30f4276
4c99b2c
bb6b2d3
3bf167a
3d9bc9e
413f571
82fa395
a4d8f3f
f1868d9
0b975d6
f9cc057
cf87c9f
73dd9a6
45cb9b0
688e204
d0da373
3421dfc
00e03d6
bf2d9a6
9c0b753
d997ed1
d740f1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,37 @@ | ||
language: python | ||
sudo: required | ||
dist: trusty | ||
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 | ||
sudo: required | ||
python: 2.7 | ||
- os: linux | ||
sudo: required | ||
python: 3.5 | ||
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=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 | ||
# - 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; | ||
|
@@ -37,26 +45,13 @@ before_install: | | |
nvm use 7.2.1 | ||
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)' | ||
pyenv install $PYTHON | ||
pyenv global $PYTHON | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is pyenv for? If you need to run tests under different Python versions you could use tox and then list different Python versions in the text matrix. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was the only way I knew I could get multiple versions of Python running on Travis for OSX. Will check tox. |
||
fi | ||
install: | ||
# we have this here so we can see where python is installed and hardcode in our tests | ||
# else when running npm test, the python version picked is completely different :( | ||
- python --version | ||
- python -c 'import sys;print(sys.executable)' | ||
- pip install -r requirements.txt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how do i do that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably want There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
- npm install | ||
- npm run vscode:prepublish | ||
|
||
script: | ||
- npm test --silent | ||
- npm test --silent |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ jupyter | |
ipython | ||
nose | ||
pytest | ||
#fabric | ||
numba | ||
fabric | ||
numba |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,4 @@ suite('Deferred', () => { | |
|
||
done(); | ||
}); | ||
}); | ||
}); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ suite('IdDispenser', () => { | |
|
||
done(); | ||
}); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
cache: pip
to cache pip-installed dependencies.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed