From 4fe4b9193a90948866a08cf81b96eb094374f007 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 11 Feb 2018 19:56:08 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E2=80=9Edo=20not=20build=20utils.js?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test does not know the ==-Parameter. It only accepts =. For better style use around variable to evade problems when the variable contains spaces --- travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis.sh b/travis.sh index 3831408..4a4405f 100755 --- a/travis.sh +++ b/travis.sh @@ -1,7 +1,7 @@ #!/bin/sh -e yarn lint for conf in $(ls config/); do - if [ $conf == "utils.js" ]; then + if [ "$conf" = "utils.js" ]; then continue fi yarn build $conf From ace335a51781a693b2e77eea0c5d013352667a16 Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 11 Feb 2018 19:58:58 +0100 Subject: [PATCH 2/2] Upload artifacts Upload build artifacts to the server of @ranlvor. This allows viewing the build results in a webbrowser and eases continuous deployment because one can just deploy the artifacts travis has built and does not have to build them somewhere else --- .travis.yml | 8 ++ travis-upload-artifacts.sh | 161 +++++++++++++++++++++++++++++++++++++ travis.sh | 2 + 3 files changed, 171 insertions(+) create mode 100755 travis-upload-artifacts.sh diff --git a/.travis.yml b/.travis.yml index 3687c35..bee4227 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,13 @@ node_js: - 9 script: - yarn travis + +after_success: + - ./travis-upload-artifacts.sh + cache: yarn: true + +env: + global: + secure: tF/UHXKXmkEMfaB2bxt6bBXJNJZOT2Tb7grbsCHGBc/4OYh1lBhDLb/y55yzuvrE+zHu5Y3CPcK1OFV9KcsbwfvW3Kzt11fxdMI1Eqg7vG5m4JXokMt3YjhgrJSCm5IVqVMbyuRhfrNJ7RGXNQqhw81g2nwkUfpj6FW//fJOyg/J8GQiWEzjeB14r15oTvgEMsGPLE4/qck9Liv4u7DQV1n1+E2wENJMV2jbvoUe2bqteGSMoeZL2ALvI1572oBviYywjtpOM0xHxI5fYJ/m3eq3LFggKEVZp2CzKQ2WZ2rtd1lplxJ8tHco8XmOu3dn3ZkbrBB2Rg+XLvrOkYQMqnuukAwbTn4Br//b3zXsspt+A38mTxW5/UDpoQz+IG26hiGXE3EYQ91pJfOGwHMn+fOLrFz+X0A6H+oi65HwA8nriIRNqiPauYIxeZdb/lAaHaVJeovsIC6EP19ycEXVlHYbwRG2cB6FNeJaGrP8Zu10/MHxx2QY3UuwqWMdZZ5ZjWapiqOSDoPNGBETTPngWLGFMnzkhWYmLsdbp+LF353PR+ikALUVYrQaCPgr0IvTs9H8PEzHlZjoW+aD67TT6Q5Yhiz2dFEy9fJNH/Y4QcKglAFf1tz/gd41JX8cNLJINWdltzsYKWP0FInvLAr7f3iwhmqzly55XDkmftQRlRs= diff --git a/travis-upload-artifacts.sh b/travis-upload-artifacts.sh new file mode 100755 index 0000000..8b2e86d --- /dev/null +++ b/travis-upload-artifacts.sh @@ -0,0 +1,161 @@ +#!/bin/sh +if [ "$TRAVIS_SECURE_ENV_VARS" != "true" ]; then + echo "TRAVIS_SECURE_ENV_VARS not available. Aborting artifact upload." + exit +fi + +#unpack autorisation information +cat > key.gpg <> ~/.ssh/known_hosts <