git-secret/utils/deb/deb-ci.sh
sobolevn 8b1a01f1f6
This commit is pretty large. A lot of changes.
The full list of changes:
1. Added `.docker/` folder with Dockerfiles
2. Now `travis` runs integrational tests inside these containers
3. Now `travis` runs tests with `mac os x`
4. Now there are new ways to autodeploy `deb` and `rpm` packages
5. Fixed some issues
6. Also added `.ci/` folder, where utility scripts for travis are stored
7. Moved `git-hooks` into the separate folder: `utils/hooks/`
8. Added new target to the `Makefile`
9. `.gitignore` is updated to ignore `build/` folder and inner files
2016-06-16 22:34:25 +03:00

37 lines
822 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 `.deb` package on your system, see `Installation`
source "${SECRET_PROJECT_ROOT}/utils/build-utils.sh"
# This folder should contain just one .deb file:
DEB_FILE_LOCATION=$(locate_deb)
# Integration tests
function integration_tests {
# Installing the package:
dpkg -i "$DEB_FILE_LOCATION"
# Configuring the dependencies:
apt-get -f -y install
# Testing the installation:
dpkg --get-selections | grep "git-secret"
which "git-secret"
# Test the manuals:
man --where "git-secret" # .7
man --where "git-secret-init" # .1
}
integration_tests
# Unit tests:
source "${SECRET_PROJECT_ROOT}/utils/tests.sh"