#! /bin/bash -e
set -x

# Go to the 'root' directory
BASE_DIR=$(readlink -f "$(dirname $(readlink -f $0))/..")
cd ${BASE_DIR}

# Remove the dist directory
rm -rf dist

# Launch the Python unit tests
./bin/test

# Create the wheel package
python3 setup.py bdist_wheel --plat-name=linux_x86_64

#! /bin/bash -e
set -x

# Go to the 'root' directory
BASE_DIR=$(readlink -f "$(dirname $(readlink -f $0))/..")
cd ${BASE_DIR}

# Cleaning 'dist' directory
rm -rf dist/*

# Launch the Python unit tests
./bin/test

# Create the wheel package
python3 setup.py bdist_wheel --plat-name=linux_x86_64

# Fixing the 'dist' directory's permissions
chmod -R a+rw dist

Fix 'dist' directory permissions and cleaning
Fix 'dist' directory permissions and cleaning

The 'dist' directory can be used as a volume to share the created wheel
package.
