Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Commit 000d2cf

Browse files
Merge branch 'webroot'
2 parents 875e525 + 323287c commit 000d2cf

22 files changed

+105
-602
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.AppleDouble
22
public_html
33
/assets/*
4+
/web/assets/*
45
/vendor/*
56
/themes/*
67
/protected/runtime/*
@@ -10,6 +11,7 @@ public_html
1011
!/themes/default
1112
/protected/modules/*
1213
/uploads/*
14+
/web/uploads/*
1315
.htaccess
1416
*.*~
1517
*.swp

.travis.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
global:
55
- "ARTIFACTS_AWS_REGION=us-east-1"
66
- "ARTIFACTS_S3_BUCKET=travis-s3-us-01"
7+
- "ARTIFACTS_DEBUG=1"
78
- secure: "ZhvRET5CEgYtZY5z8nUDjcpqthkVb6yc/qBi/re+EOaLgx1nVFSf5G6uHEVqlzNka5F67KT+kV0Ph3WqoT9d3X10IAiH2cdvG/gsZxJi8pXn+A0A1f9I4wnsvlSDmgHG46JjWb7nz6VqKb5WC54eVEEZ2kPlkQPmXZ5r9QbanCs="
89
- secure: "ioXW769alaD/b2QrPyzRgRV/k/7p5TmtuRDKQmLFa5wcAkLiuWa6VzaMMdc5VroK4hEsMvJdxJJtrneZEyPluiVntL59TW5OO5OzDVrxZInlXRLCW1jSwi2BkzdezNfS5g6X3nv3d/YOz4pci/KbLmiDVwOt+LWEjymOqLarVpA="
910
- secure: "U9q/v5DwZtVmRYjczFWIu49AP1RDBvWZasj+cqE+qUN+z8k7F+WvFlpoBfguKyT4utxlQCeu/2cUxz3v++Ab3mjdgtAumtqSZVcklNPduah2wiXyg4jz65FLemgRSlWTGDFsc5EcIBwk4OUZFdguikiAJGVtiY5VTfv/0kW5P1w="
@@ -28,7 +29,7 @@ notifications:
2829
email:
2930
on_success: change
3031
on_failure: change
31-
32+
3233
install:
3334
- bundle install --path vendor/bundler
3435
- composer config --global github-oauth.github.com $GITHUB_API_TOKEN
@@ -37,10 +38,15 @@ install:
3738
- php -i
3839

3940
before_script:
40-
- mysql -e 'create database ciims_travis;'
41-
- php index.php installer index --dbHost=127.0.0.1 --dbName=ciims_travis --dbUsername=root --dbPassword="" --adminEmail="travis@ciims.io" --adminPassword=travis --adminUsername=travis --siteName="CiiMS - Travis CI" --force=0 --writeConfig=1 --debug=1
41+
- mysql -e 'CREATE DATABASE ciims_travis;'
42+
- php web/index.php installer index --dbHost=127.0.0.1 --dbName=ciims_travis --dbUsername=root --dbPassword="" --adminEmail="travis@ciims.io" --adminPassword=travis --adminUsername=travis --siteName="CiiMS - Travis CI" --force=0 --writeConfig=1 --debug=1
4243

4344
after_failure: # Upload the application.log on failure
4445
- "bundle exec travis-artifacts upload --path protected/runtime/application.log"
4546

46-
script: ./vendor/bin/codecept run
47+
script:
48+
- ./vendor/bin/codecept run
49+
- ./vendor/bin/codecept run -c ./vendor/charlesportwoodii/cii
50+
- ./vendor/bin/codecept run -c ./protected/modules/api
51+
- ./vendor/bin/codecept run -c ./protected/modules/install
52+
- ./vendor/bin/codecept run -c ./protected/modules/dashboard

codeception.yml

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,13 @@ settings:
1010
memory_limit: 1024M
1111
log: true
1212
modules:
13-
enabled: [PhpBrowser, WebHelper, TestHelper, Yii1, Db]
13+
enabled: [PhpBrowser, WebHelper, TestHelper, Yii1]
1414
config:
1515
PhpBrowser:
1616
url: http://localhost:8234
1717
Yii1:
18-
appPath: test.php
19-
url: http://localhost:8234/test.php
20-
Db:
21-
dsn: 'mysql:host=127.0.0.1;dbname=ciims_travis'
22-
user: 'root'
23-
password: ''
24-
populate: false
25-
cleanup: false
18+
appPath: web/test.php
19+
url: http://localhost:8234/web/test.php
2620
curl:
2721
CURLOPT_SSL_VERIFYPEER: 0
2822
CURLOPT_SSL_VERIFYHOST: 0

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@
7070
"yiqing-95/YiiTimeAgo": "dev-master",
7171
"charlesportwoodii/eanalytics": "1.1.5",
7272
"charlesportwoodii/yii-newrelic": "1.0.1",
73-
"charlesportwoodii/cii": "1.0.25",
73+
"charlesportwoodii/cii": "1.0.26",
7474
"ciims-themes/default": "3.0.20",
75-
"ciims-modules/dashboard": "3.0.26",
76-
"ciims-modules/api": "2.0.22",
77-
"ciims-modules/install": "2.0.12",
75+
"ciims-modules/dashboard": "3.0.27",
76+
"ciims-modules/api": "2.0.23",
77+
"ciims-modules/install": "2.0.13",
7878
"ciims-modules/hybridauth": "2.0.6",
7979
"ciims-plugins/awsuploader": "1.0.3",
8080
"zhuravljov/yii2-debug": "v1.4",

composer.lock

+45-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protected/config/main.default.php

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
),
5555
),
5656
'components' => array(
57+
'themeManager' => array(
58+
'basePath' => (__DIR__ . DS . '..' . DS . '..' . DS . 'themes')
59+
),
5760
'messages' => array(
5861
'class' => 'vendor.charlesportwoodii.cii.components.CiiPHPMessageSource'
5962
),

protected/models/Users.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function beforeValidate()
234234
$emailSettings->send(
235235
$this,
236236
Yii::t('ciims.models.Users', 'CiiMS Password Change Notification'),
237-
'webroot.themes.' . Cii::getConfig('theme', 'default') .'.views.email.passwordchange',
237+
'base.themes.' . Cii::getConfig('theme', 'default') .'.views.email.passwordchange',
238238
array('user' => $this)
239239
);
240240
}

protected/models/forms/ProfileForm.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function sendVerificationEmail()
308308
return $emailSettings->send(
309309
$this->_user,
310310
Yii::t('ciims.models.Users', 'CiiMS Email Change Notification'),
311-
'webroot.themes.' . Cii::getConfig('theme', 'default') .'.views.email.email-change',
311+
'base.themes.' . Cii::getConfig('theme', 'default') .'.views.email.email-change',
312312
array(
313313
'key' => $this->setNewEmailChangeKey(),
314314
'user' => $this->_user

0 commit comments

Comments
 (0)