#1 set up test pipeline
Opened 4 years ago by bex. Modified 4 years ago
rpms/ bex/golang-github-rfjakob-gocryptfs rawhide_ci  into  rawhide

file added
+15
@@ -0,0 +1,15 @@ 

+ --- test.bash.orig	2019-03-17 16:59:11.000000000 +0100

+ +++ test.bash	2019-07-17 16:16:22.184061887 +0200

+ @@ -37,10 +37,10 @@

+  # Clean up dangling filesystems and don't exit if we found some

+  unmount_leftovers || true

+  

+ -./build-without-openssl.bash

+ +echo ./build-without-openssl.bash

+  # Don't build with openssl if we were passed "-tags without_openssl"

+  if [[ "$@" != *without_openssl* ]] ; then

+ -	./build.bash

+ +	echo ./build.bash

+  fi

+  

+  if ! go tool | grep vet > /dev/null ; then

@@ -15,6 +15,7 @@ 

  

  %global golicenses      LICENSE

  %global godocs          README.md

+ 

  Name:           %{goname}

  Release:        1%{?dist}

  Summary:        Encrypted overlay filesystem written in Go
@@ -22,6 +23,8 @@ 

  License:        MIT

  URL:            %{gourl}

  Source0:        https://%{goipath}/releases/download/v%{version}/gocryptfs_v%{version}_src.tar.gz

+ # Patch tests to not rebuild - useful for CI

+ Patch0:         fix_test.patch

  

  BuildRequires:  golang(github.com/hanwen/go-fuse/fuse)

  BuildRequires:  golang(github.com/hanwen/go-fuse/fuse/nodefs)
@@ -34,7 +37,6 @@ 

  BuildRequires:  golang(golang.org/x/sync/syncmap)

  BuildRequires:  golang(golang.org/x/sys/unix)

  BuildRequires:  openssl-devel

- Requires:  fuse

  

  %description

  %{common_description}
@@ -43,6 +45,7 @@ 

  

  %package -n gocryptfs

  Summary:       %{summary}

+ Requires:  fuse

  

  %description -n gocryptfs

  %{common_description}
@@ -57,6 +60,7 @@ 

  

  %prep

  %goprep

+ %patch0 -p0

  

  %build

  USVERSION=$(cat VERSION)

file added
+14
@@ -0,0 +1,14 @@ 

+ ---

+ - hosts: localhost

+   roles:

+   - role: standard-test-source

+     tags:

+     - classic

+  

+   - role: standard-test-basic

+     required_packages:

+     - golang-github-pkg-xattr-devel

+     tests:

+     - smoke:

+         dir: ./source/

+         run: ./test.bash