Fixing Travis CI

This commit is contained in:
Lucas Cimon 2019-02-13 20:07:31 +01:00
parent 5c8c18a7c1
commit 4c24a01c60
No known key found for this signature in database
GPG Key ID: 08DA831E717571EE
2 changed files with 5 additions and 3 deletions

View File

@ -20,10 +20,10 @@
- id: eslint - id: eslint
name: eslint name: eslint
language: system language: system
entry: sh -c 'eslint templates/js/*.js' entry: sh -c 'eslint static/js/*.js'
files: '' files: ^static/js/
- id: stylelint - id: stylelint
name: stylelint name: stylelint
language: system language: system
entry: sh -c 'stylelint static/main.css' entry: sh -c 'stylelint static/main.css'
files: '' files: ^static/js/main.css$

View File

@ -8,6 +8,8 @@ SMALLEST['jpg'] = SMALLEST['jpeg'] = b'\xff\xd8\xff\xdb\x00C\x00\x03\x02\x02\x02
SMALLEST['png'] = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x00\x00\x00\x00:~\x9bU\x00\x00\x00\nIDATx\x9cc\xfa\x0f\x00\x01\x05\x01\x02\xcf\xa0.\xcd\x00\x00\x00\x00IEND\xaeB`\x82' SMALLEST['png'] = b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x00\x00\x00\x00:~\x9bU\x00\x00\x00\nIDATx\x9cc\xfa\x0f\x00\x01\x05\x01\x02\xcf\xa0.\xcd\x00\x00\x00\x00IEND\xaeB`\x82'
def gen_img(img_url): def gen_img(img_url):
if img_url[0] == '/':
img_url = img_url[1:]
if os.path.exists(img_url): if os.path.exists(img_url):
return return
os.makedirs(os.path.dirname(img_url), exist_ok=True) os.makedirs(os.path.dirname(img_url), exist_ok=True)