2016-02-12 04:49:33 +00:00
|
|
|
language: node_js
|
2018-04-26 01:21:54 +00:00
|
|
|
|
|
|
|
# https://github.com/nodejs/Release
|
2016-02-12 04:49:33 +00:00
|
|
|
node_js:
|
2018-10-28 06:00:22 +00:00
|
|
|
- 11 # EOL: June 2019
|
|
|
|
- 10 # EOL: April 2021
|
|
|
|
- 8 # EOL: December 2019
|
|
|
|
- 6 # EOL: April 2019
|
2016-06-09 09:03:27 +00:00
|
|
|
|
2018-10-11 20:19:15 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
|
2016-06-09 09:03:27 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2017-01-07 23:53:56 +00:00
|
|
|
include:
|
2018-10-11 20:19:15 +00:00
|
|
|
- node_js: 8
|
|
|
|
os: windows
|
|
|
|
env: YARN_GPG=no # starts gpg-agent that never exits
|
|
|
|
- node_js: 8
|
|
|
|
os: osx
|
|
|
|
- name: "Production build"
|
|
|
|
node_js: 8 # Version used to deploy to npm registry
|
|
|
|
os: linux
|
2017-01-07 23:53:56 +00:00
|
|
|
env: BUILD_ENV=production
|
2016-06-09 09:03:27 +00:00
|
|
|
|
2018-01-19 10:50:08 +00:00
|
|
|
cache: yarn
|
|
|
|
|
2017-01-07 23:29:56 +00:00
|
|
|
before_script:
|
2018-01-19 10:50:08 +00:00
|
|
|
- NODE_ENV=$BUILD_ENV yarn build
|
|
|
|
|
2018-05-24 13:44:41 +00:00
|
|
|
install:
|
2018-10-11 20:19:15 +00:00
|
|
|
- yarn --frozen-lockfile --non-interactive --network-timeout 300000
|
2018-05-24 13:44:41 +00:00
|
|
|
|
2016-03-09 08:55:26 +00:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: never
|
|
|
|
on_failure: always
|
2016-06-09 09:03:27 +00:00
|
|
|
|
2018-02-20 05:58:43 +00:00
|
|
|
# Identifies `a.b.c-xxx.n` tags as pre-releases, and `a.b.c` as stable releases
|
|
|
|
before_deploy: |
|
|
|
|
function npm_dist_tag() {
|
|
|
|
if [[ "$TRAVIS_TAG" = *"-"* ]]; then
|
|
|
|
echo "next"
|
|
|
|
else
|
|
|
|
echo "latest"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2016-02-12 05:17:55 +00:00
|
|
|
deploy:
|
2017-09-27 07:39:12 +00:00
|
|
|
skip_cleanup: true # prevent git stash --all which nukes node_modules folder
|
2016-02-12 05:17:55 +00:00
|
|
|
provider: npm
|
2018-02-20 05:58:43 +00:00
|
|
|
tag: $(npm_dist_tag)
|
2016-02-12 05:17:55 +00:00
|
|
|
email:
|
2018-10-28 05:56:35 +00:00
|
|
|
secure: 0EZsBJAc9XjdEgvG0g2+UnF6DnB+pOfuTUGg83SJBSzpHiI/fPNRw/LTmvrba3yq3kjS32BfMVrPLKDPIHFSuNgfzxu7w1V3IhmbkMcHHu62o8aG8SDlEs58OuctcSYTYU+oeZY392pjB/kLNerLgPC/IeuHEcE/Os+VFPoFFTYbHAigbiGsRMlNAv3Da5xDpHeemn3B5c+b6l8tS9urSX28ThHHh883VRTd1Bb3ioBQ4C5dPa35Uk+2eV9MLswSMb4YAfZLB4R6jiUl3KAIZ87wbfcZon6/sqOyMx25XqWMG/Y3ygay73esXPyHMpJ/3kenRx7hPR1xoyfmTfyuUBi5k05jHRh2xmaBvFfQOjscvqYu0+7DrweF7dK0Yyy1A+ImCovMPJk5bIOjhFbA7lXQefyOW5CW3wJBKDFa8a/X6Ptdtsd6b3GPkSwa3mZw0u1S4xSDepmYq5XAVr+rIu8wgySahNkWMYzl6TSG8gQ6rvSI82DBf8lYOhSpNo7tFXFZqll2VVYcolhDymbwVe3CLzNZ3l62J1+oOsCPkr8Zf5Mx+BU0fXOHdQTpT/3xwj5kjkgQZcreBqUD49p5X00jgLifXQxJ2iy0VlwkGfZxeM8QrSGApUgO2s6KZkARWQDPD8L4MDyE4oiSZRUohT4N/dn1xqOvZm/eq8PnXFo=
|
2016-02-12 05:17:55 +00:00
|
|
|
api_key:
|
2018-10-28 05:56:35 +00:00
|
|
|
secure: AMz3r6oUv71mcTwpjVWc13AJvoIdhCB5zZQly88VMz1kxEgEkhXsugC2E5UOBKE+u45xGypbDoZIMt/raJfPTirZ9emTnl9Q3USc+V74RJ9RmsGrmCF9Kyr6ZdOuhifCLgQGzPK1U3IDp0S2EC6TRMD4x/bPjTakQYoE+XiQGji5p1j1Fjff2jyiJo396CYSR2dRgfG0h1Uz8ilK6AeSQ6iErMqOUvKpYnmlmsa4h/qGCpbb2XQtnzRLpFNYFA264lXNUh3on3DmvKH5qlw5NYJ6hl4ZUNzIk4uNPD2BklHg1l7U6sTWXUk3VLI86GyymCHef29Ry47cKXXNCY0pR3r+ptOm9OxWvtS/8pZv/XFzRq/oCtEk27DWUc/NHJiv/+7uKXSAeSZ0OqDCNxLXfre0nFtzcrXZ5aV4aspjbKrbYZj10gef4q5/OzTFJOxRifPDjvpxnACwGsgZaqei/grRNHkVkHci1IRn56Vj7oKuFJemmckJXi/QuozXf72oYYfi4LUamdfNu/5i5tKV/cj4TFsB+sOt/by9qxPPo/YXkGKTrdoqSshLX0tKyf69zS8Bmp/mb768a1vrxZRco0EajP4YzzoNMjnWpgjFikTNOJ2DzuySdSjVcU2d0OLge7OBtui9yaYA68ETNaA0uhQVxmBOb/Ujt9OGAqrhskU=
|
2016-02-12 05:17:55 +00:00
|
|
|
on:
|
2017-05-31 08:49:39 +00:00
|
|
|
node: 8
|
2017-01-07 23:53:56 +00:00
|
|
|
condition: "$BUILD_ENV = production"
|
2016-02-12 05:17:55 +00:00
|
|
|
tags: true
|
2018-02-21 17:48:22 +00:00
|
|
|
repo: thelounge/thelounge
|
2018-02-20 05:59:47 +00:00
|
|
|
|
|
|
|
# If the current release is a stable release, remove potential pre-release tag
|
|
|
|
after_deploy: |
|
|
|
|
if [ "$(npm_dist_tag)" == "latest" ]; then
|
2019-01-27 22:54:58 +00:00
|
|
|
npm dist-tag rm thelounge next || true
|
2018-02-20 05:59:47 +00:00
|
|
|
fi
|