File: bundle-gem

package info (click to toggle)
rubygems 3.6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 37,448 kB
  • sloc: ruby: 141,650; sh: 94; makefile: 28
file content (24 lines) | stat: -rwxr-xr-x 347 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

exec 2>&1
set -ex

if [ -z "$AUTOPKGTEST_TMP" ]; then
  AUTOPKGTEST_TMP=$(mktemp -d)
  cleanup() {
    rm -rf "$AUTOPKGTEST_TMP"
  }
  trap cleanup INT TERM EXIT
fi

cd $AUTOPKGTEST_TMP

mkdir .bundle
cat > .bundle/config <<EOF
---
BUNDLE_GEM__COC: true
BUNDLE_GEM__MIT: false
BUNDLE_GEM__TEST: rspec
EOF

HOME=$(pwd) bundle gem foobar