minetest_x_bows/bitbucket-pipelines.yml

53 lines
1.6 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:
"**":
- step:
name: Lint code
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
branches:
master:
- step:
name: Lint code
script:
- apt-get update
- apt-get -y install lua5.1
- apt-get -y install luarocks
- luarocks install luacheck
- luacheck .
tags:
"*":
2022-11-02 23:04:43 -05:00
# - step:
# name: Lint code
# script:
# - apt-get update
# - apt-get -y install lua5.1
# - apt-get -y install luarocks
# - luarocks install luacheck
# - luacheck .
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
script:
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