Commit afaaf33b authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

What the hell--let the script do the whole damn thing.

parent 95aed563
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
py_exe=python${py_version}

echo "MAKE-VENV VERSION 1"

rm -Rf .env
rm -Rf build

@@ -16,3 +14,25 @@ else
fi
curl -k https://bitbucket.org/pypa/setuptools/raw/0.7.2/ez_setup.py | python -
curl -k https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python -

if test -f requirements.txt; then
  pip install -r requirements.txt
fi

find -name '*.pyc' -delete
${py_exe} setup.py install

if test -d test; then
  cd test

  if test "$cl_dev" != ""; then
    cl_dev_real=`echo ${cl_dev} | tr '_+' ': '`
  fi

  if test -f /tmp/enable-amd-compute; then
    . /tmp/enable-amd-compute
  fi

  ulimit -c unlimited
  PYOPENCL_TEST=${cl_dev_real} ${py_exe} -m pytest --junitxml=pytest.xml
fi