minetest_x_bows/bitbucket-pipelines.yml

88 lines
2.8 KiB
YAML
Raw Normal View History

2022-10-05 20:03:07 -05:00
image: atlassian/default-image:3
2022-10-05 19:54:07 -05:00
pipelines:
2022-11-02 22:29:05 -05:00
pull-requests:
"**":
2022-11-03 10:47:52 -05:00
- parallel:
- step:
2022-11-03 10:54:47 -05:00
name: Lua Check
2022-11-03 10:47:52 -05:00
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
2022-11-02 22:29:05 -05:00
branches:
master:
2022-11-03 10:47:52 -05:00
- parallel:
- step:
2022-11-03 10:54:47 -05:00
name: Lua Check
2022-11-03 10:47:52 -05:00
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
2022-11-02 22:29:05 -05:00
tags:
"*":
2022-11-03 10:47:52 -05:00
- parallel:
- step:
2022-11-03 10:54:47 -05:00
name: Lua Check
2022-11-03 10:47:52 -05:00
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
- step:
name: Lua Diagnostics
caches:
- node-modules
- npm
- nvm
script:
- nvm use v17.2.0
- npm run lua-diagnostics
2022-11-02 22:29:05 -05:00
- step:
2022-11-02 23:04:43 -05:00
name: Install Node Dependencies
caches:
- node-modules
- npm
- nvm
2022-11-02 22:29:05 -05:00
script:
2022-11-02 23:04:43 -05:00
- nvm install v17.2.0
- npm i -g npm@8
- npm ci
2022-11-02 22:37:31 -05:00
- step:
name: Deploy to ContentDB
2022-11-02 23:08:09 -05:00
caches:
- node-modules
- npm
- nvm
2022-11-02 22:37:31 -05:00
script:
2022-11-02 23:08:09 -05:00
- nvm use v17.2.0
2022-11-02 23:04:43 -05:00
- npm run push:ci -- --token=$CONTENT_DB_X_BOWS_TOKEN --title=$BITBUCKET_TAG
definitions:
caches:
node-modules: ./node_modules
npm: ~/.npm
nvm: ~/.nvm