From f0ef8a896e3a19c319789e39e5df9579d2ab185a Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Tue, 14 Apr 2020 11:02:39 +0200 Subject: [PATCH] Add: Travis --- .travis.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..511b290 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: node_js +node_js: 12 + +script: + - (cd app && npm ci && npm run build) + - npm ci + +before_deploy: + - if [ -n "$TRAVIS_TAG" ] ; then npm version $TRAVIS_TAG ; fi + - > + tar -czf psitransfer-$TRAVIS_TAG.tar.gz + LICENSE + README.md + Dockerfile + .dockerignore + app.js + config.js + package.json + package-lock.json + docs + lib + public + +deploy: + provider: releases + token: $GH_TOKEN + overwrite: true + file: $TRAVIS_BUILD_DIR/psitransfer-$TRAVIS_TAG.tar.gz + skip_cleanup: true