sul-dlss/was_robot_suite

View on GitHub
.autoupdate/preupdate

Summary

Maintainability
Test Coverage
#!/bin/bash

# This script is called by our weekly dependency update job in Jenkins, before updating Ruby and other deps

# Without these ENV changes, python gets confused and tries to use latin1
# encodings which breaks the poetry update below
export LANG=en_US.UTF-8
export LC_COLLATE=C.UTF-8

# Needed to successfully run `pipx`
export PATH="$HOME/.local/bin:$PATH"

pip3 install --user pipx > was_robot_suite.txt &&
  pipx install poetry --force >> was_robot_suite.txt &&
  ~/.local/bin/poetry update -n --no-ansi >> was_robot_suite.txt &&

retVal=$?

git add poetry.lock &&
  git commit -m "Update Python dependencies"

if [ $retVal -ne 0 ]; then
    echo "ERROR UPDATING PYTHON (was_robot_suite)"
    cat was_robot_suite.txt
fi

cd ..