Skip to content

Instantly share code, notes, and snippets.

@jdfreder
Last active December 19, 2015 23:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdfreder/6032166 to your computer and use it in GitHub Desktop.
Save jdfreder/6032166 to your computer and use it in GitHub Desktop.
Test for the 1.0 nbconvert nose suite
TRAVIS_PYTHON_VERSION="3.3"
sudo apt-add-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install -y python$TRAVIS_PYTHON_VERSION
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python$TRAVIS_PYTHON_VERSION /usr/bin/python
echo Testing install for...
python --version
sudo apt-get install -y curl
#sudo apt-get install -y python$TRAVIS_PYTHON_VERSION
#sudo apt-get install -y python$TRAVIS_PYTHON_VERSION-dev
sudo apt-get install -y build-essential
sudo wget https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py
sudo python ez_setup.py
sudo curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
sudo pip install nose
cd ~/
git clone https://github.com/jdfreder/ipython.git
cd ~/ipython
git checkout origin/new_tests
if [[ $TRAVIS_PYTHON_VERSION == '3.2'* ]]; then sudo pip install -Iv https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.6.tar.gz; fi
if [[ ! $TRAVIS_PYTHON_VERSION == '3.2'* ]]; then sudo pip install jinja2; fi
sudo apt-get install -y pandoc
sudo easy_install -q pyzmq
sudo pip install pygments
sudo pip install sphinx
sudo python setup.py install -q
if [[ $TRAVIS_PYTHON_VERSION == '2.'* ]]; then iptest -w /tmp; fi
if [[ $TRAVIS_PYTHON_VERSION == '3.'* ]]; then iptest3 -w /tmp; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment