Remove skyline_console when rename whl files Change-Id: Ia9e49bf284bfaae12536eadeb780005636027cb1
72 lines
2.1 KiB
YAML
72 lines
2.1 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=erbium
|
|
nvm install --lts=$NODE_VERSION
|
|
nvm alias default lts/$NODE_VERSION
|
|
nvm use default
|
|
# yarn
|
|
npm install -g yarn
|
|
# tox
|
|
pip3 install tox
|
|
|
|
- name: Build tarball and wheel
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
git submodule update --init
|
|
. $HOME/.nvm/nvm.sh
|
|
$HOME/.local/bin/tox -e package
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
|
|
|
- name: Remove the invalid tar.gz and whl packages
|
|
shell:
|
|
executable: /bin/bash
|
|
cmd: |
|
|
rm -rf *
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
|
|
- name: Move all tar.gz and whl packages into dist
|
|
shell: "mv libs/{{ item }}/dist/* dist/"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}"
|
|
with_items:
|
|
- "skyline-apiserver"
|
|
- "skyline-config"
|
|
- "skyline-log"
|
|
- "skyline-nginx"
|
|
- "skyline-policy-manager"
|
|
|
|
- name: Rename whl files to branch specific name
|
|
shell: "mv {{ item }}*.whl {{ item }}-{{ zuul.branch | replace('/', '-') }}.whl"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
with_items:
|
|
- "skyline_apiserver"
|
|
- "skyline_config"
|
|
- "skyline_log"
|
|
- "skyline_nginx"
|
|
- "skyline_policy_manager"
|
|
|
|
- name: Rename tar.gz files to branch specific name
|
|
shell: "mv {{ item }}*.tar.gz {{ item }}-{{ zuul.branch | replace('/', '-') }}.tar.gz"
|
|
args:
|
|
chdir: "src/{{ zuul.project.canonical_name }}/dist"
|
|
with_items:
|
|
- "skyline-apiserver"
|
|
- "skyline-config"
|
|
- "skyline-log"
|
|
- "skyline-nginx"
|
|
- "skyline-policy-manager"
|
|
|