mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
52dd244a73
adds a docker file for integration tests update integration framework and tests to include alpine update makefile to include apk builds for alpine update build utils to include apk compatibility changed a couple switch lines to be compatible with alpine adds travis tests
39 lines
880 B
Bash
39 lines
880 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Note that this file is created for test purposes:
|
|
# 1. It runs inside the Docker container
|
|
# 2. It does not use `sudo` or anything
|
|
# 3. If you would like to install `.apk` package on your system, see `Installation`
|
|
|
|
# shellcheck disable=SC1090,SC1091
|
|
source "${SECRET_PROJECT_ROOT}/utils/build-utils.sh"
|
|
|
|
# This folder should contain just one .apk file:
|
|
APK_FILE_LOCATION=$(locate_apk)
|
|
|
|
|
|
# Integration tests
|
|
function integration_tests {
|
|
# Installing the package:
|
|
apk add "$APK_FILE_LOCATION"
|
|
|
|
# Configuring the dependencies:
|
|
apk add --update-cache
|
|
|
|
# Testing the installation:
|
|
apk info | grep "git-secret"
|
|
which "git-secret"
|
|
|
|
# Test the manuals:
|
|
man --where "git-secret" # .7
|
|
man --where "git-secret-init" # .1
|
|
}
|
|
|
|
integration_tests
|
|
|
|
# Unit tests:
|
|
# shellcheck disable=SC1090,SC1091
|
|
source "${SECRET_PROJECT_ROOT}/utils/tests.sh"
|