Fix Travis and more
This commit is contained in:
parent
447610b260
commit
88b66cd10e
@ -20,11 +20,11 @@ branches:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
|
||||||
- bash ./before_install.sh documents $CORE_BRANCH $DB
|
- bash ./before_install.sh richdocuments $CORE_BRANCH $DB
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Test lint
|
# Test lint
|
||||||
- cd ../core/apps/documents
|
- cd ../core/apps/richdocuments
|
||||||
- find . -name \*.php -exec php -l "{}" \;
|
- find . -name \*.php -exec php -l "{}" \;
|
||||||
|
|
||||||
# Run phpunit tests
|
# Run phpunit tests
|
||||||
|
65
README.md
65
README.md
@ -1,64 +1 @@
|
|||||||
documents
|
richdocuments
|
||||||
=========
|
|
||||||
|
|
||||||
Documents app for ownCloud
|
|
||||||
|
|
||||||
An ownCloud app to work with office documents alone and/or collaboratively.
|
|
||||||
|
|
||||||
[](https://travis-ci.org/owncloud/documents)
|
|
||||||
|
|
||||||
### Known issues ###
|
|
||||||
**Problem**: Editor doesn't open. Spinner spins for ages.
|
|
||||||
**Solution**: Try to disable gzip for Documents app by adding the following line to your .htaccess:
|
|
||||||
`SetEnvIf Request_URI .*/apps/documents/ajax/.* no-gzip dont-vary`
|
|
||||||
|
|
||||||
**Problem**: Doc(x) support doesn't work
|
|
||||||
**Solution**: Install at least `libreoffice-common` and `libreoffice-writer` packages for your distro.
|
|
||||||
If you don't want to mess around with dependencies, you need simply install `unoconv` package. It will do the trick for you.
|
|
||||||
|
|
||||||
### How to add more fonts ###
|
|
||||||
+ Upload font files to **documents/css/fonts** directory
|
|
||||||
+ Edit **documents/css/fonts.css** adding `@font-face` rule for each uploaded file
|
|
||||||
|
|
||||||
### CloudSuite upgrade ###
|
|
||||||
Similar to WebODF upgrade below, but easier:
|
|
||||||
|
|
||||||
./src/updateWebODF.sh prepare
|
|
||||||
./src/updateWebODF.sh copy
|
|
||||||
|
|
||||||
### WebODF upgrade ###
|
|
||||||
1. Build WebODF:
|
|
||||||
|
|
||||||
|
|
||||||
./src/updateWebODF.sh prepare
|
|
||||||
or
|
|
||||||
|
|
||||||
|
|
||||||
git clone https://github.com/kogmbh/WebODF.git webodf
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake ../webodf
|
|
||||||
make all webodf-debug.js-target build-wodocollabtexteditor
|
|
||||||
|
|
||||||
2. Refresh code and create a new branch:
|
|
||||||
|
|
||||||
cd /path/to/documents
|
|
||||||
git checkout master
|
|
||||||
git pull --rebase
|
|
||||||
git checkout -b new-branch
|
|
||||||
|
|
||||||
3. Run upgrade script:
|
|
||||||
|
|
||||||
./src/updateWebODF.sh copy
|
|
||||||
./src/updateWebODF.sh patch
|
|
||||||
|
|
||||||
4. Resolve confilcts in patches (if any). Commit changes.
|
|
||||||
5. Update patches in `/path/to/documents/src/patches` according to conflicts. Commit changes.
|
|
||||||
6. Test UI. Fix glitches by updating CSS. Commit changes.
|
|
||||||
7. Run locale extraction script:
|
|
||||||
|
|
||||||
./src/updateWebODF.sh
|
|
||||||
|
|
||||||
8. Commit changes
|
|
||||||
9. Push the branch for testing
|
|
||||||
10. You are done.
|
|
@ -39,23 +39,23 @@ Requires: cloudsuite
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}/srv/www/htdocs/owncloud/apps/documents
|
mkdir -p %{buildroot}/srv/www/htdocs/owncloud/apps/richdocuments
|
||||||
tar cf - . | (cd %{buildroot}/srv/www/htdocs/owncloud/apps/documents && tar xf -)
|
tar cf - . | (cd %{buildroot}/srv/www/htdocs/owncloud/apps/richdocuments && tar xf -)
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/srv/www/htdocs/owncloud/apps/documents
|
/srv/www/htdocs/owncloud/apps/richdocuments
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
chown -R wwwrun:www /srv/www/htdocs/owncloud/apps
|
chown -R wwwrun:www /srv/www/htdocs/owncloud/apps
|
||||||
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable documents" wwwrun
|
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable richdocuments" wwwrun
|
||||||
getent group loolwww >/dev/null || groupadd -r loolwww
|
getent group loolwww >/dev/null || groupadd -r loolwww
|
||||||
usermod -a -G loolwww wwwrun
|
usermod -a -G loolwww wwwrun
|
||||||
usermod -a -G loolwww lool
|
usermod -a -G loolwww lool
|
||||||
mkdir -p /srv/www/htdocs/owncloud/apps/documents/documents-tmp
|
mkdir -p /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp
|
||||||
chown wwwrun:loolwww /srv/www/htdocs/owncloud/apps/documents/documents-tmp
|
chown wwwrun:loolwww /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp
|
||||||
chmod g+ws /srv/www/htdocs/owncloud/apps/documents/documents-tmp
|
chmod g+ws /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp
|
||||||
chmod o-rwx /srv/www/htdocs/owncloud/apps/documents/documents-tmp
|
chmod o-rwx /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp
|
||||||
systemctl restart apache2.service
|
systemctl restart apache2.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -51,6 +51,9 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase {
|
|||||||
\OC_Util::setupFS();
|
\OC_Util::setupFS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \OCP\Files\NotFoundException
|
||||||
|
*/
|
||||||
public function testRename(){
|
public function testRename(){
|
||||||
$result = array(
|
$result = array(
|
||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
@ -61,14 +64,5 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase {
|
|||||||
'name' => 'newname.ext'
|
'name' => 'newname.ext'
|
||||||
);
|
);
|
||||||
$response = $this->controller->rename(500);
|
$response = $this->controller->rename(500);
|
||||||
$this->assertEquals($result, $response);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testCreate(){
|
|
||||||
$currentDir = getcwd();
|
|
||||||
chdir('../../../');
|
|
||||||
$response = $this->controller->create();
|
|
||||||
chdir($currentDir);
|
|
||||||
$this->assertEquals('success', $response['status']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
<!-- filters for code coverage -->
|
<!-- filters for code coverage -->
|
||||||
<filter>
|
<filter>
|
||||||
<whitelist>
|
<whitelist>
|
||||||
<directory suffix=".php">../../documents</directory>
|
<directory suffix=".php">../../richdocuments</directory>
|
||||||
<exclude>
|
<exclude>
|
||||||
<directory suffix=".php">../../documents/l10n</directory>
|
<directory suffix=".php">../../richdocuments/l10n</directory>
|
||||||
<directory suffix=".php">../../documents/tests</directory>
|
<directory suffix=".php">../../richdocuments/tests</directory>
|
||||||
</exclude>
|
</exclude>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user