File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed
Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,7 @@ sudo apt-get update && sudo apt-get install -y wget git build-essential squashfs
1111
1212sudo sed -i -e ' s/^Defaults\tsecure_path.*$//' /etc/sudoers
1313
14- if [ " ${PYTHON_VERSION} " == " 2" ];
15- then
16- wget https://repo.continuum.io/archive/Anaconda2-5.0.0.1-Linux-x86_64.sh
17- sudo bash Anaconda2-5.0.0.1-Linux-x86_64.sh -b -p /opt/conda && sudo chown -R 0755 /opt/conda
18- PATH=/opt/conda/bin:$PATH
19- rm Anaconda2-5.0.0.1-Linux-x86_64.sh
20- export PATH
21- else
22- wget https://repo.continuum.io/archive/Anaconda3-5.0.0.1-Linux-x86_64.sh
23- sudo bash Anaconda3-5.0.0.1-Linux-x86_64.sh -b -p /opt/conda && sudo chown -R 0755 /opt/conda
24- PATH=/opt/conda/bin:$PATH
25- rm Anaconda3-5.0.0.1-Linux-x86_64.sh
26- export PATH
27- fi
28-
29- # Install python dependencies
30- /opt/conda/bin/pip install --upgrade pip && \
31- /opt/conda/bin/pip install requests
14+ echo " PYTHON VERSION"
3215which python
3316
3417python setup.py sdist && python setup.py install
Original file line number Diff line number Diff line change 11#! /bin/bash
22sudo apt-get install -y squashfs-tools
3- python -m unittest discover -s $TRAVIS_BUILD_DIR /spython/tests/ -p ' [t|T]est*.py'
3+
4+ if [ " ${PYTHON_VERSION} " == " 2" ];
5+ then
6+ python -m unittest discover -s $TRAVIS_BUILD_DIR /spython/tests/ -p ' [t|T]est*.py'
7+ else
8+ python3 -m unittest discover -s $TRAVIS_BUILD_DIR /spython/tests/ -p ' [t|T]est*.py'
9+ fi
You can’t perform that action at this time.
0 commit comments