skyline-apiserver/playbooks/python-tarball/run.yaml
zhu.boxiang 7b61aeee13 Fix: Fail to publish package to tarballs
1. Use tox to make packages.
2. Change the way to install nodejs and yarn with nvm.
3. Update the skyline-console submodule

Change-Id: I363ec0dcda428701be2260893ebe97aa3dd77b5f
2021-10-08 16:15:44 +08:00

28 lines
858 B
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/.local/bin/tox -e package
args:
chdir: "src/{{ zuul.project.canonical_name }}"