Sha256: 8a8fef370ce9f2a8deb73b48587eae0b7df262f0d7af540ec78a31843c000fd5
Contents?: true
Size: 910 Bytes
Versions: 6
Compression:
Stored size: 910 Bytes
Contents
#!/usr/bin/env bash set -x set -e PACKAGE="$1" NAME="$2" ARTIFACTS="${3:-artifacts}" prefix=/opt/${NAME#bjn-} export PATH=$prefix/bin:/usr/local/bin:$PATH # package_deps=(zlib1g libssl1.0.0 libncurses5 libreadline6 libbz2-1.0 libsqlite3-0 xz-utils) # Prepare validation environment apt-get update apt-get install -y dpkg-dev curl curl -o bats-v0.4.0.tar.gz https://codeload.github.com/sstephenson/bats/tar.gz/v0.4.0 tar xzf bats-v0.4.0.tar.gz (cd bats-0.4.0 && ./install.sh /usr/local) # Create local repo cp $ARTIFACTS/$PACKAGE /artifacts (cd /artifacts && dpkg-scanpackages . /dev/null | gzip >Packages.gz) echo 'deb [trusted=yes] file:///artifacts ./' >/etc/apt/sources.list.d/${NAME}.list apt-get update rm -rf $prefix # Install package apt-get install -y $NAME /opt/inventory/bin/aws-ec2-source --version for validation_test in tasks/package/validate/*.sh do $validation_test || exit 12 done
Version data entries
6 entries across 6 versions & 1 rubygems