Browse Source

Checkout on UT if possible

pull/2301/head
ozh 2 years ago
parent
commit
81d1ece5a1
2 changed files with 14 additions and 2 deletions
  1. 3
    0
      .editorconfig
  2. 11
    2
      .travis.yml

+ 3
- 0
.editorconfig View File

@@ -14,3 +14,6 @@ trim_trailing_whitespace = false

[*.js]
indent_size = 2

[*.yml]
indent_size = 2

+ 11
- 2
.travis.yml View File

@@ -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;'

Loading…
Cancel
Save