
refer to: https://zuul.opendev.org/t/openstack/build/1c2e00b50ff440d8a8ad4a2c9b81b93d/console tarball name like: skyline_console-5.1.0.dev18.tar.gz Closes-bug: 2098440 Change-Id: Ide83bb7f891d02d18738e44d19ffab64483a2361
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- name: Install tox, nvm, nodejs and yarn
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
# nvm
|
|
wget -P $HOME --tries=10 --retry-connrefused --waitretry=60 --no-dns-cache --no-cache https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh
|
|
bash $HOME/install.sh
|
|
. $HOME/.nvm/nvm.sh
|
|
# nodejs
|
|
NODE_VERSION=gallium
|
|
nvm install --lts=$NODE_VERSION
|
|
nvm alias default lts/$NODE_VERSION
|
|
nvm use default
|
|
# yarn
|
|
npm install -g yarn
|
|
|
|
- name: Build tarball and wheel
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
. $HOME/.nvm/nvm.sh
|
|
make package
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
|
|
|
- name: Rename whl files to branch specific name
|
|
shell: "mv skyline_console*.whl skyline_console-{{ zuul.branch | replace('/', '-') }}.whl"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
|
|
- name: Rename tar.gz files to branch specific name
|
|
shell: "mv skyline_console*.tar.gz skyline-console-{{ zuul.branch | replace('/', '-') }}.tar.gz"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|