Skip to content

Commit 333764d

Browse files
committed
Renaming and migrating post-import
(please)
1 parent 3f3a9dc commit 333764d

File tree

7 files changed

+79
-96
lines changed

7 files changed

+79
-96
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: main
2+
on:
3+
push:
4+
branches: [main]
5+
tags: [v*]
6+
pull_request:
7+
branches: [main]
8+
env:
9+
GO_BOOTSTRAP_VERSION: 1.17.13
10+
SHELLCHECK_URL: "https://www.googleapis.com/download/storage/v1/b/shellcheck/o/shellcheck-v0.4.7.linux.x86_64.tar.xz?alt=media"
11+
SHFMT_URL: "https://github.com/mvdan/sh/releases/download/v2.2.0/shfmt_v2.2.0_linux_amd64"
12+
jobs:
13+
build:
14+
strategy:
15+
matrix:
16+
env:
17+
- runner: ubuntu-latest
18+
goos: linux
19+
goarch: amd64
20+
target: native
21+
# TODO: more matrix entries
22+
runs-on: ${{ matrix.env.runner }}
23+
env:
24+
TARGET: ${{ matrix.env.target }}
25+
GOOS: ${{ matrix.env.goos }}
26+
GOARCH: ${{ matrix.env.goarch }}
27+
steps:
28+
- uses: actions/checkout@v3
29+
- run: printf 'GIMME_TMP=%s\n' "${RUNNER_TEMP}" | tee -a "${GITHUB_ENV}"
30+
- run: printf 'UNAME=%s\n' "$(uname | tr '[:upper:]' '[:lower:]')" | tee -a "${GITHUB_ENV}"
31+
- run: printf 'GO_VERSIONS=%s\n' "$(sed -n -e '/^[^#]/p' < .testdata/sample-binary-$UNAME) $(sed -n -e '/^[^#]/p' < .testdata/source-$UNAME)" | tee -a "${GITHUB_ENV}"
32+
- run: printf 'PATH=%s\n' "${HOME}/bin:${PATH}" | tee -a "${GITHUB_ENV}"
33+
- run:
34+
if [ $UNAME = linux ] && [[ $(shellcheck --version | awk '/^version:/ { print $2 }') != 0.4.7 ]] ; then
35+
curl -sSL -o "${GIMME_TMP}/shellcheck.tar.xz" "${SHELLCHECK_URL}";
36+
tar -C "${HOME}/bin" --exclude="*.txt" --strip-components=1 -xf "${GIMME_TMP}/shellcheck.tar.xz";
37+
shellcheck --version;
38+
fi
39+
- run:
40+
if [ $UNAME = linux ] && [[ $(shfmt -version 2>/dev/null) != v2.2.0 ]] ; then
41+
curl -sSL "${SHFMT_URL}" -o "${HOME}/bin/shfmt";
42+
chmod +x "${HOME}/bin/shfmt";
43+
shfmt -version;
44+
fi
45+
- run: if [ $UNAME = linux ]; then make lint; fi
46+
- run: git diff --exit-code
47+
- run: git diff --cached --exit-code
48+
- run: ./gimme -h
49+
- run: ./gimme -V
50+
- run: ./runtests "${TARGET}" "${GO_BOOTSTRAP_VERSION}" ${GO_VERSIONS}
51+
- run: ./gimme -l

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,19 @@ This project adheres to [Semantic Versioning](http://semver.org/).
157157
### Added
158158
- Initial release!
159159

160-
[Unreleased]: https://github.com/travis-ci/gimme/compare/v1.5.3...HEAD
161-
[1.5.3]: https://github.com/travis-ci/gimme/compare/v1.5.2...v1.5.3
162-
[1.5.2]: https://github.com/travis-ci/gimme/compare/v1.5.1...v1.5.2
163-
[1.5.1]: https://github.com/travis-ci/gimme/compare/v1.5.0...v1.5.1
164-
[1.5.0]: https://github.com/travis-ci/gimme/compare/v1.4.0...v1.5.0
165-
[1.4.0]: https://github.com/travis-ci/gimme/compare/v1.3.0...v1.4.0
166-
[1.3.0]: https://github.com/travis-ci/gimme/compare/v1.2.0...v1.3.0
167-
[1.2.0]: https://github.com/travis-ci/gimme/compare/v1.1.0...v1.2.0
168-
[1.1.0]: https://github.com/travis-ci/gimme/compare/v1.0.4...v1.1.0
169-
[1.0.0]: https://github.com/travis-ci/gimme/compare/v0.2.4...v1.0.0
170-
[0.2.4]: https://github.com/travis-ci/gimme/compare/v0.2.3...v0.2.4
171-
[0.2.3]: https://github.com/travis-ci/gimme/compare/v0.2.2...v0.2.3
172-
[0.2.2]: https://github.com/travis-ci/gimme/compare/v0.2.1...v0.2.2
173-
[0.2.1]: https://github.com/travis-ci/gimme/compare/v0.2.0...v0.2.1
174-
[0.2.0]: https://github.com/travis-ci/gimme/compare/v0.1.0...v0.2.0
175-
[0.1.0]: https://github.com/travis-ci/gimme/compare/655fc2e...v0.1.0
160+
[Unreleased]: https://github.com/urfave/gimme/compare/v1.5.3...HEAD
161+
[1.5.3]: https://github.com/urfave/gimme/compare/v1.5.2...v1.5.3
162+
[1.5.2]: https://github.com/urfave/gimme/compare/v1.5.1...v1.5.2
163+
[1.5.1]: https://github.com/urfave/gimme/compare/v1.5.0...v1.5.1
164+
[1.5.0]: https://github.com/urfave/gimme/compare/v1.4.0...v1.5.0
165+
[1.4.0]: https://github.com/urfave/gimme/compare/v1.3.0...v1.4.0
166+
[1.3.0]: https://github.com/urfave/gimme/compare/v1.2.0...v1.3.0
167+
[1.2.0]: https://github.com/urfave/gimme/compare/v1.1.0...v1.2.0
168+
[1.1.0]: https://github.com/urfave/gimme/compare/v1.0.4...v1.1.0
169+
[1.0.0]: https://github.com/urfave/gimme/compare/v0.2.4...v1.0.0
170+
[0.2.4]: https://github.com/urfave/gimme/compare/v0.2.3...v0.2.4
171+
[0.2.3]: https://github.com/urfave/gimme/compare/v0.2.2...v0.2.3
172+
[0.2.2]: https://github.com/urfave/gimme/compare/v0.2.1...v0.2.2
173+
[0.2.1]: https://github.com/urfave/gimme/compare/v0.2.0...v0.2.1
174+
[0.2.0]: https://github.com/urfave/gimme/compare/v0.1.0...v0.2.0
175+
[0.1.0]: https://github.com/urfave/gimme/compare/655fc2e...v0.1.0

CODE_OF_CONDUCT.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
58+
reported by contacting the project team at [email protected], a
59+
members-only group that is world-postable. All complaints will be reviewed and
60+
investigated and will result in a response that is deemed necessary and
61+
appropriate to the circumstances. The project team is obligated to maintain
62+
confidentiality with regard to the reporter of an incident. Further details of
63+
specific enforcement policies may be posted separately.
6364

6465
Project maintainers who do not follow or enforce the Code of Conduct in good
6566
faith may face temporary or permanent repercussions as determined by other

README.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gimme [![Build Status](https://travis-ci.com/travis-ci/gimme.svg?branch=master)](https://travis-ci.com/travis-ci/gimme)
1+
# gimme
22

33
Install go, yay!
44

@@ -11,7 +11,7 @@ Install from github:
1111
``` bash
1212
# assumes ~/bin exists and is in $PATH, so adjust accordingly!
1313

14-
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
14+
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/urfave/gimme/main/gimme
1515
chmod +x ~/bin/gimme
1616
```
1717

@@ -67,7 +67,7 @@ source ~/.gimme/envs/go1.4.env
6767
Or run without installing gimme:
6868

6969
``` bash
70-
eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
70+
eval "$(curl -sL https://raw.githubusercontent.com/urfave/gimme/main/gimme | GIMME_GO_VERSION=1.4 bash)"
7171
```
7272

7373
To install and use the current stable release of Go:
@@ -128,25 +128,6 @@ gimme --version
128128
gimme version
129129
```
130130

131-
### `.travis.yml`
132-
133-
The original goal of this project was trivial cross-compilation within Travis. The following is an example `.travis.yml` file to accomplish this for a normal Go project:
134-
135-
```yaml
136-
language: go
137-
138-
env:
139-
- GIMME_OS=linux GIMME_ARCH=amd64
140-
- GIMME_OS=darwin GIMME_ARCH=amd64
141-
- GIMME_OS=windows GIMME_ARCH=amd64
142-
143-
install:
144-
- go get -d -v ./...
145-
146-
script:
147-
- go build -v ./...
148-
```
149-
150131
## Available Versions
151132

152133
### Policy of Gimme

gimme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ set -o pipefail
5555
[[ ${GIMME_DEBUG} ]] && set -x
5656

5757
readonly GIMME_VERSION="v1.5.4"
58-
readonly GIMME_COPYRIGHT="Copyright (c) 2015-2020 gimme contributors"
59-
readonly GIMME_LICENSE_URL="https://raw.githubusercontent.com/travis-ci/gimme/${GIMME_VERSION}/LICENSE"
58+
readonly GIMME_COPYRIGHT="Copyright (c) 2022 gimme contributors"
59+
readonly GIMME_LICENSE_URL="https://raw.githubusercontent.com/urfave/gimme/${GIMME_VERSION}/LICENSE"
6060
export GIMME_VERSION
6161
export GIMME_COPYRIGHT
6262
export GIMME_LICENSE_URL

runtests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ _test_arm64() {
8989
echo "---> skipping ${v} because it probably won't work o_o"
9090
continue
9191
fi
92-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cgo=1; else cgo=0; fi
92+
if [[ "$RUNNER_OS" == "Linux" ]]; then cgo=1; else cgo=0; fi
9393
echo "---> eval \$(GIMME_OS=linux GIMME_ARCH=arm64 GIMME_CGO_ENABLED=$cgo ./gimme $v)"
9494
(
9595
eval "$(GIMME_OS=linux GIMME_ARCH=arm64 GIMME_CGO_ENABLED=$cgo ./gimme "${v}")"

0 commit comments

Comments
 (0)