<commit_before>#!/usr/bin/env bash

docker run --rm --privileged multiarch/qemu-user-static:register --reset


# get qemu-arm-static binary
mkdir tmp
pushd tmp && \
curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz && \
tar xzf qemu-arm-static.tar.gz && \
popd

# build image
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

if [ "$TRAVIS_BRANCH" == "develop" ]; then
    echo "Build develop arm"
    docker build --tag jc5x/firefly-iii:develop-arm --file Dockerfile.arm .
    docker tag jc5x/firefly-iii:develop-arm jc5x/firefly-iii:develop-$VERSION-arm
    docker push jc5x/firefly-iii:develop-arm
    docker tag jc5x/firefly-iii:develop-$VERSION-arm
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then
    echo "Build master arm"
    docker build --tag jc5x/firefly-iii:latest-arm --file Dockerfile.arm .
    docker tag jc5x/firefly-iii:latest-arm jc5x/firefly-iii:release-$VERSION-arm
    docker push jc5x/firefly-iii:latest-arm
    docker push jc5x/firefly-iii:release-$VERSION-arm
fi<commit_msg>Fix build script.<commit_after>#!/usr/bin/env bash

docker run --rm --privileged multiarch/qemu-user-static:register --reset


# get qemu-arm-static binary
mkdir tmp
pushd tmp && \
curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz && \
tar xzf qemu-arm-static.tar.gz && \
popd

# build image
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

if [ "$TRAVIS_BRANCH" == "develop" ]; then
    echo "Build develop arm"
    docker build --tag jc5x/firefly-iii:develop-arm --file Dockerfile.arm .
    docker tag jc5x/firefly-iii:develop-arm jc5x/firefly-iii:develop-$VERSION-arm
    docker push jc5x/firefly-iii:develop-arm
    docker push jc5x/firefly-iii:develop-$VERSION-arm
fi

if [ "$TRAVIS_BRANCH" == "master" ]; then
    echo "Build master arm"
    docker build --tag jc5x/firefly-iii:latest-arm --file Dockerfile.arm .
    docker tag jc5x/firefly-iii:latest-arm jc5x/firefly-iii:release-$VERSION-arm
    docker push jc5x/firefly-iii:latest-arm
    docker push jc5x/firefly-iii:release-$VERSION-arm
fi
{'fraction_non_alphanumeric': 0.13975576662143827, 'fraction_numerical': 0.011759384893713252, 'mean_word_length': 3.5892116182572615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4376245', 'n_tokens_mistral': 867, 'n_tokens_neox': 828, 'n_words': 167}