Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2016-02-14 00:49:50 +0300
committerChaoyi Zha <summermontreal@gmail.com>2016-02-14 00:49:50 +0300
commit8052e2f32fc5bc08113e1bd3e9851840eb4757cd (patch)
tree095c063d22d6178bff885d4c39838d5705c287b0
parenta05b7b1a3aae9ecc7fbcd88c82a50fba261fc351 (diff)
Add basic travis tests
-rw-r--r--.travis.yml14
-rw-r--r--tests/test_env65
2 files changed, 79 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1c09d48
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,14 @@
+language: php
+php:
+ - '5.4'
+ - '5.5'
+ - '5.6'
+ - '7.0'
+services:
+ - mysql
+script:
+ - phpunit
+before_script:
+ - mv tests/test_env .env
+ - mysql -e 'CREATE DATABASE polrci;'
+ - composer install
diff --git a/tests/test_env b/tests/test_env
new file mode 100644
index 0000000..4516f33
--- /dev/null
+++ b/tests/test_env
@@ -0,0 +1,65 @@
+APP_ENV=production
+
+# Set to true if debugging
+APP_DEBUG=false
+
+# 32-character key (e.g 3EWBLwxTfh%*f&xRBqdGEIUVvn4%$Hfi)
+APP_KEY=a5bd6a61b1327670bedd712a358d9c2b
+
+# Your app's name (shown on interface)
+APP_NAME=Polr
+
+# Protocol to access your app. e.g https://
+APP_PROTOCOL=http://
+
+# Your app's external address (e.g example.com)
+APP_ADDRESS=localhost:5000
+
+# Your app's bootstrap stylesheet
+# e.g https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css
+APP_STYLESHEET=//maxcdn.bootstrapcdn.com/bootswatch/3.3.6/united/bootstrap.min.css
+
+# Set to today's date (e.g November 3, 2015)
+POLR_GENERATED_AT=Travis CI
+
+# Set to true after running setup script
+# e.g true
+POLR_SETUP_RAN=true
+
+DB_CONNECTION=mysql
+# Set to your DB host (e.g localhost)
+DB_HOST=localhost
+# DB port (e.g 3306)
+DB_PORT=3306
+# Set to your DB name (e.g polr)
+DB_DATABASE=polrci
+# DB credentials
+# e.g root
+DB_USERNAME=root
+DB_PASSWORD=
+
+# Polr Settings
+SETTING_PUBLIC_INTERFACE=true
+
+# Set to true to allow signups, false to disable (e.g true/false)
+POLR_ALLOW_ACCT_CREATION=
+
+# Set to true to require activation by email (e.g true/false)
+POLR_ACCT_ACTIVATION=
+
+SETTING_SHORTEN_PERMISSION=false
+SETTING_INDEX_REDIRECT=
+SETTING_PASSWORD_RECOV=false
+
+APP_LOCALE=en
+APP_FALLBACK_LOCALE=en
+
+CACHE_DRIVER=file
+SESSION_DRIVER=file
+QUEUE_DRIVER=database
+
+# Do not touch
+POLR_RELDATE=January 18, 2016
+POLR_VERSION=Travis CI
+POLR_BASE=32
+POLR_SECRET_BYTES=2