Skip to content

Commit

Permalink
Travis Build.
Browse files Browse the repository at this point in the history
  • Loading branch information
francis94c committed Jun 23, 2019
1 parent f126726 commit de7d272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ branches:
- master
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test_db;'
install: ./travis.sh
install: ./francis94c/blog/travis.sh
env:
- CI_ENV="testing_db"
script: phpunit
9 changes: 6 additions & 3 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ created=false
for entry in ./*
do
if [ $created = false ]; then
mkdir -p travis-splint-$SPLINT_VERSION/application/splints/$VENDOR/$PACKAGE
mkdir -p travis-splint-$SPLINT_VERSION/application/splints/
$created = true
fi
if [ "x$entry" != "x./phpunit.xml" ] && [ "x$entry" != "x./travis.sh" ]; then
cp -r $entry travis-splint-$SPLINT_VERSION/application/splints/$VENDOR/$PACKAGE/
if [ "x$entry" != "x./$VENDOR/$PACKAGE/phpunit.xml" ] && [ "x$entry" != "x./$VENDOR/$PACKAGE/travis.sh" ]; then
echo $entry
cp -r $entry travis-splint-$SPLINT_VERSION/application/splints/
rm -rf $entry
fi
done

cp "$VENDOR/$PACKAGE/phpunit.xml" "../../phpunit.xml"

wget https://github.com/splintci/travis-splint/archive/v$SPLINT_VERSION.tar.gz -O - | tar xz

# Dependencies
Expand Down

0 comments on commit de7d272

Please sign in to comment.