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
28 lines
858 B
YAML
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 }}"
|