From 594543b946f250e24edb521e70662f4fe5833def Mon Sep 17 00:00:00 2001 From: Daniel Kaneider Date: Sat, 8 Sep 2018 17:22:37 +0200 Subject: [PATCH] Travis test (#1) --- .travis.yml | 22 ++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..53b5b5a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: node_js +node_js: + - "10" +cache: + yarn: true + directories: + - "frontend/node_modules" +script: cd frontend && yarn install && yarn build:prod && cd .. + +before_deploy: +- cd frontend/dist +- tar -cvf ${TRAVIS_BUILD_DIR}${REPO}-${BUILD_ENV}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar * + +deploy: + provider: releases + api_key: + secure: $deploy_key + file: + - ${TRAVIS_BUILD_DIR}${REPO}-${BUILD_ENV}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}.tar + skip_cleanup: true + on: + tags: true diff --git a/README.md b/README.md index e69de29..ab54bf9 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,2 @@ +[![Build Status](https://travis-ci.org/oefsv/ulti-players.svg?branch=master)](https://travis-ci.org/oefsv/ulti-players) +