mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
travis
This commit is contained in:
parent
07ee09f49a
commit
a3436d4cba
3 changed files with 20 additions and 2 deletions
15
.travis.yml
15
.travis.yml
|
@ -0,0 +1,15 @@
|
||||||
|
language: php
|
||||||
|
|
||||||
|
php:
|
||||||
|
- 5.4
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- composer install
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
- nicolas.loeuillet@gmail.com
|
3
TODO.md
3
TODO.md
|
@ -7,4 +7,5 @@ minifier css
|
||||||
revoir tous les css
|
revoir tous les css
|
||||||
barre fixe d'admin sur la page d'un billet ?
|
barre fixe d'admin sur la page d'un billet ?
|
||||||
revoir export (export vers pocket &cie ? )
|
revoir export (export vers pocket &cie ? )
|
||||||
raccourcis clavier
|
raccourcis clavier
|
||||||
|
date d'ajout d'un lien
|
|
@ -465,13 +465,15 @@ class Poche
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check online the latest version of poche and cache it
|
* Checks online the latest version of poche and cache it
|
||||||
* @param string $which 'prod' or 'dev'
|
* @param string $which 'prod' or 'dev'
|
||||||
* @return string latest $which version
|
* @return string latest $which version
|
||||||
*/
|
*/
|
||||||
private function getPocheVersion($which = 'prod')
|
private function getPocheVersion($which = 'prod')
|
||||||
{
|
{
|
||||||
$cache_file = CACHE . '/' . $which;
|
$cache_file = CACHE . '/' . $which;
|
||||||
|
|
||||||
|
# checks if the cached version file exists
|
||||||
if (file_exists($cache_file) && (filemtime($cache_file) > (time() - 86400 ))) {
|
if (file_exists($cache_file) && (filemtime($cache_file) > (time() - 86400 ))) {
|
||||||
$version = file_get_contents($cache_file);
|
$version = file_get_contents($cache_file);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue