-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add Papr support #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
10006e7
No man5 or man8 man pages
rhatdan 83b55c4
-mFix crioConfigPath
rhatdan 92818fd
Fix gofmt errors
rhatdan 0847e77
Fix lint error on spec being shadowed
rhatdan f590429
Add .papr support
rhatdan 6e37df1
Remove tip from testing in yaml
rhatdan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
| set -xeuo pipefail | ||
|
|
||
| export GOPATH=$HOME/gopath | ||
| export PATH=$HOME/gopath/bin:$PATH | ||
| export GOSRC=$HOME/gopath/src/github.com/projectatomic/libpod | ||
|
|
||
| (mkdir -p $GOSRC && cd /code && cp -r . $GOSRC) | ||
|
|
||
| dnf install -y \ | ||
| bats \ | ||
| btrfs-progs-devel \ | ||
| bzip2 \ | ||
| device-mapper-devel \ | ||
| findutils \ | ||
| git \ | ||
| glib2-devel \ | ||
| gnupg \ | ||
| golang \ | ||
| gpgme-devel \ | ||
| libassuan-devel \ | ||
| libseccomp-devel \ | ||
| libselinux-devel \ | ||
| skopeo-containers \ | ||
| runc \ | ||
| make \ | ||
| ostree-devel \ | ||
| python \ | ||
| which | ||
|
|
||
| # PAPR adds a merge commit, for testing, which fails the | ||
| # short-commit-subject validation test, so tell git-validate.sh to only check | ||
| # up to, but not including, the merge commit. | ||
| export GITVALIDATE_TIP=$(cd $GOSRC; git log -2 --pretty='%H' | tail -n 1) | ||
| export TAGS="seccomp $($GOSRC/hack/btrfs_tag.sh) $($GOSRC/hack/libdm_tag.sh) $($GOSRC/hack/btrfs_installed_tag.sh) $($GOSRC/hack/ostree_tag.sh) $($GOSRC/hack/selinux_tag.sh)" | ||
| make -C $GOSRC binaries install.tools all gofmt localintegration testunit TAGS="${TAGS}" | ||
| #make -C $GOSRC lint | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| branches: | ||
| - master | ||
|
||
| - auto | ||
| - try | ||
|
|
||
| host: | ||
| distro: fedora/26/atomic | ||
| specs: | ||
| ram: 8192 | ||
|
|
||
| required: true | ||
|
|
||
| tests: | ||
| # mount yum repos to inherit injected mirrors from PAPR | ||
| - docker run --net=host --privileged -v /etc/yum.repos.d:/etc/yum.repos.d.host:ro | ||
| -v /tmp:/tmp -v /var/tmp:/var/tmp | ||
| -v $PWD:/code registry.fedoraproject.org/fedora:26 sh -c | ||
| "cp -fv /etc/yum.repos.d{.host/*.repo,} && /code/.papr.sh" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -o errexit | ||
| set -o nounset | ||
| set -o pipefail | ||
|
|
||
| # Create the linter path for use later | ||
| LINTER=${GOPATH}/bin/gometalinter | ||
|
|
||
| # Make sure gometalinter is installed | ||
| if [ ! -f ${LINTER} ]; then | ||
| echo >&2 "gometalinter must be installed. Please run 'make install.tools' and try again" | ||
| exit 1 | ||
| fi | ||
|
|
||
| PKGS=$(find . -type d -not -path . -a -not -iwholename '*.git*' -a -not -iname '.tool' -a -not -iwholename '*vendor*' -a -not -iname 'hack' -a -not -iwholename '*.artifacts*' -a -not -iwholename '*contrib*' -a -not -iwholename '*test*' -a -not -iwholename '*logo*' -a -not -iwholename '*conmon*' -a -not -iwholename '*completions*' -a -not -iwholename '*docs*' -a -not -iwholename '*pause*') | ||
|
|
||
| # Execute the linter | ||
| ${LINTER} \ | ||
| --concurrency=4\ | ||
| --enable-gc\ | ||
| --vendored-linters\ | ||
| --deadline=600s --disable-all\ | ||
| --enable=deadcode\ | ||
| --enable=errcheck\ | ||
| --enable=goconst\ | ||
| --enable=gofmt\ | ||
| --enable=golint\ | ||
| --enable=ineffassign\ | ||
| --enable=interfacer\ | ||
| --enable=megacheck\ | ||
| --enable=misspell\ | ||
| --enable=structcheck\ | ||
| --enable=varcheck\ | ||
| --enable=vet\ | ||
| --enable=vetshadow\ | ||
| --exclude='error return value not checked.*\(errcheck\)$'\ | ||
| --exclude='declaration of.*err.*shadows declaration.*\(vetshadow\)$'\ | ||
| --exclude='.*_test\.go:.*error return value not checked.*\(errcheck\)$'\ | ||
| --exclude='duplicate of.*_test.go.*\(dupl\)$'\ | ||
| --exclude='cmd\/client\/.*\.go.*\(dupl\)$'\ | ||
| --exclude='vendor\/.*'\ | ||
| --exclude='server\/seccomp\/.*\.go.*$'\ | ||
| ${PKGS[@]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also https://github.com/ostreedev/ostree/blob/master/ci/libbuild.sh - once something is packaged then you can just do
pkg_install_builddeps libpod.