Permalink
Browse files

Checkout on UT if possible

  • Loading branch information...
ozh committed Sep 30, 2017
1 parent c7d0cb5 commit 81d1ece5a112944ef835b76ed009ae7192e70430
Showing with 14 additions and 2 deletions.
  1. +3 −0 .editorconfig
  2. +11 −2 .travis.yml
View
@@ -14,3 +14,6 @@ trim_trailing_whitespace = false
[*.js]
indent_size = 2
[*.yml]
indent_size = 2
View
@@ -28,9 +28,18 @@ before_script:
- which phpunit
- phpunit --version
- mysql --version
- export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- echo $CURRENT_BRANCH
- git clone git://github.com/YOURLS/YOURLS-unit-tests.git tests
- |
export CURRENT_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
echo "Current YOURLS branch: $CURRENT_BRANCH"
cd tests
if [ `git branch --list $CURRENT_BRANCH `]
then
echo "Using branch $CURRENT_BRANCH for Tests as well"
git checkout $CURRENT_BRANCH
else
echo "Using branch master for Tests"
fi
- git clone git://github.com/ozh/YOURLS-fr_FR.git user/languages/fr
- cp user/languages/fr/fr_FR.* user/languages
- mysql -e 'create database IF NOT EXISTS yourls_tests;'

0 comments on commit 81d1ece

Please sign in to comment.