Skip to content
Permalink
Browse files

Fix paths; download only in check mode

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 2, 2016
1 parent 9c9495b commit 8b98ec2d18d0277e87347db287043d2f06529db7
Showing with 11 additions and 8 deletions.
  1. +11 −8 scripts/baseline.sh
@@ -1,15 +1,18 @@
#!/bin/bash
PYVER=$(./getpyver.py short)
PYVER=$(scripts/getpyver.py short)
if [[ $PYVER == '3.5' || $PYVER == '2.7' ]]; then
echo -e "\033[36m>> Downloading baseline for $PYVER...\033[0m"
# we only support 2.7 and 3.5
wget https://github.com/getnikola/invariant-builds/archive/v$PYVER'.zip'
unzip 'v'$PYVER'.zip'
rm -rf baseline$PYVER
mv invariant-builds-$PYVER baseline
rm 'v'$i'.zip'
if [[ "$1" == "check" ]]; then
echo -e "\033[36m>> Downloading baseline for $PYVER...\033[0m"
# we only support 2.7 and 3.5
wget https://github.com/getnikola/invariant-builds/archive/v$PYVER'.zip'
unzip 'v'$PYVER'.zip'
rm -rf baseline$PYVER
mv invariant-builds-$PYVER baseline
rm 'v'$i'.zip'
fi
else
echo -e "\033[35m>> Version $PYVER does not support baseline testing.\033[0m"
exit 0
fi
nikola init -qd nikola-baseline-build
cd nikola-baseline-build

0 comments on commit 8b98ec2

Please sign in to comment.
You can’t perform that action at this time.