From f07d6a3d8f377194de74791bfa45f06a7b6851da Mon Sep 17 00:00:00 2001 From: Ali Shaikh Date: Thu, 5 Jul 2018 02:04:59 +0500 Subject: [PATCH] Travis-CI Config (#14) * #4 - Initial Travis-CI Config * #4 - Added Travis-CI Badge * #4 - Updated Travis-CI Config --- .env.travis | 39 +++++++++++++++++++++++++++++++++++++++ .travis.yml | 26 ++++++++++++++++++++++++++ README.md | 1 + 3 files changed, 66 insertions(+) create mode 100644 .env.travis create mode 100644 .travis.yml diff --git a/.env.travis b/.env.travis new file mode 100644 index 0000000..ec44a12 --- /dev/null +++ b/.env.travis @@ -0,0 +1,39 @@ +APP_NAME=Laravel +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=http://localhost + +LOG_CHANNEL=stack + +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=homestead +DB_USERNAME=homestead +DB_PASSWORD=secret + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +SESSION_DRIVER=file +SESSION_LIFETIME=120 +QUEUE_DRIVER=sync + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_DRIVER=smtp +MAIL_HOST=smtp.mailtrap.io +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4da3535 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +os: + - linux + +language: php + +php: + - '7.1' + +before_script: + - composer self-update + - composer install --no-interaction + - cp .env.travis .env + - php artisan key:generate + - php artisan config:cache + - pear install pear/PHP_CodeSniffer + - phpenv rehash + - nvm install 7.7.1 + - npm install npm@latest -g + - npm install -g jshint + - npm install + +script: + - vendor/bin/phpunit --coverage-text + - phpcs --ignore=app/Http/Controllers/Auth,app/Http/Controllers/Controller.php app/Http/Controllers + - npm run production + - jshint resources/assets/js/modules/* \ No newline at end of file diff --git a/README.md b/README.md index 6240100..22cc31b 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,4 @@ PCSM - Student Information Management System [![Test Coverage](https://api.codeclimate.com/v1/badges/efaecbc121fa5ab2dcce/test_coverage)](https://codeclimate.com/github/PCSM-Edu/PCSM-SIMS/test_coverage) [![CircleCI](https://circleci.com/gh/PCSM-Edu/PCSM-SIMS/tree/master.svg?style=svg)](https://circleci.com/gh/PCSM-Edu/PCSM-SIMS/tree/master) [![Build Status](https://semaphoreci.com/api/v1/pcsm/pcsm-sims/branches/master/badge.svg)](https://semaphoreci.com/pcsm/pcsm-sims) +[![Build Status](https://travis-ci.com/PCSM-Edu/PCSM-SIMS.svg?branch=master)](https://travis-ci.com/PCSM-Edu/PCSM-SIMS) \ No newline at end of file