run_tests.sh 729 B

12345678910111213141516171819
  1. # Exit immediately if a command returns a non-zero status.
  2. set -e
  3. # Required to enable Homebrew on Linux.
  4. test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
  5. eval "$(pyenv init -)"
  6. pyenv global ${YCM_PYTHON_VERSION}
  7. # It is quite easy to get the steps to configure Python wrong. Verify that the
  8. # version of Python actually in the PATH and used is the version that was
  9. # requested, and fail the build if we broke the setup.
  10. python_version=$(python -c 'import sys; print( "{}.{}.{}".format( *sys.version_info[:3] ) )')
  11. echo "Checking python version (actual ${python_version} vs expected ${YCM_PYTHON_VERSION})"
  12. test ${python_version} == ${YCM_PYTHON_VERSION}
  13. python run_tests.py
  14. set +e