From 5e512a6ce5fe156eb3075d81f011889a211b561f Mon Sep 17 00:00:00 2001 From: K4USTU3H Date: Tue, 10 Dec 2019 22:26:23 +0530 Subject: [PATCH] Add Lighthouse CI --- .travis.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff439e8..5b3fbc0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,19 @@ dist: bionic language: node_js node_js: - 11 +addons: + chrome: stable cache: - directories: - - node_modules + directories: + - node_modules +before_install: + - npm install -g @lhci/cli@0.3.x before_script: - npm install -g script: - gitfolio build k4ustu3h --fork --theme dark --sort updated --twitter k4ustu3h_ --dribbble k4ustu3h --email k4ustu3h@gmail.com --codepen k4ustu3h --dev k4ustu3h --instagram k4ustu3h +after_success: + - lhci autorun --upload.target=temporary-public-storage --staticDistDir=/home/travis/build/k4ustu3h/gitfolio/dist deploy: provider: pages skip_cleanup: true @@ -17,4 +23,4 @@ deploy: local_dir: dist verbose: true on: - branch: master + branch: master