tox_py3.sh 635 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. ls -l /
  3. echo "============== ENVIRONMENT ============="
  4. /usr/bin/env
  5. echo "============== END ENVIRONMENT ============="
  6. if [ -n "$REPO" -a -n "$BRANCH" ]; then
  7. git remote rm proposed || true
  8. git gc --auto
  9. git remote add proposed "$REPO"
  10. git fetch proposed
  11. git checkout origin/master
  12. git config --global user.email "you@example.com"
  13. git config --global user.name "Your Name"
  14. git merge --no-ff "proposed/$BRANCH" -m "Merge PR"
  15. echo "Running tests for branch $BRANCH of repo $REPO"
  16. echo "Last commits:"
  17. git --no-pager log -2
  18. fi
  19. export LANG="en_US.UTF-8"
  20. tox -v --sitepackages -e 'py35-flask100-ci' -- --results=results