Skip to content

Commit

Permalink
Try unit tests for dusk (4)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 19, 2018
1 parent 3ec36bc commit 2f362a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ notifications:
- [email protected]

before_install:
- sudo apt-get update
- sudo apt-get install npm nodejs-legacy
- "./data/travis-ci/setup_tests.sh"

after_failure:
Expand Down
8 changes: 4 additions & 4 deletions data/travis-ci/setup_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
pwd

# install requirements
sudo apt-get update >/dev/null
# sudo apt-get update >/dev/null
# sudo apt-get upgrade
#sudo apt-get install php-memcache php7.0-snmp php-pear
#phpenv config-add data/travis-ci/configs/ixp-php.ini
Expand All @@ -28,12 +28,12 @@ cp .env.travisci .env
sudo cp data/travis-ci/configs/* application/configs
sudo touch public/.htaccess

echo composer install --no-interaction --prefer-dist --no-suggest
composer install --no-interaction --prefer-dist --no-suggest

sudo npm install -g bower
bower install --production

echo composer install --no-interaction --prefer-dist --no-suggest
composer install --no-interaction --prefer-dist --no-suggest

mysql -e "CREATE DATABASE myapp_test CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_unicode_ci';"
bzcat data/travis-ci/travis_ci_test_db.sql.bz2 | mysql --default-character-set=utf8mb4 -h 127.0.0.1 -u travis myapp_test

Expand Down

0 comments on commit 2f362a7

Please sign in to comment.