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) +