Re: [PATCH rdma-core 3/5] travis: Add RedHat and SuSE rpmbuild support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 02, 2017 at 06:55:54PM +0200, Leon Romanovsky wrote:
> From: Alaa Hleihel <alaa@xxxxxxxxxxxx>
> 
> Provide a new script for testing rpmbuild under RedHat and SuSE
> environments which validates both of the suse/rdma-core.spec and
> redhat/rdma-core.spec specfiles.
> 
> The script performs the RPM package build test by utilizing the existing
> cbuild tool.

This breaks cbuild pkg travis - we should not attempt to build using
docker when run outside travis:

$ buildlib/cbuild pkg travis
[..]
+ for OS in centos7 opensuse-42.2 artful
+ echo
+ echo 'Checking package build for centos7 ....'
+ echo
+ buildlib/cbuild build-images centos7

Checking package build for centos7 ....

Traceback (most recent call last):
  File "buildlib/cbuild", line 54, in <module>
    import yaml
ImportError: No module named yaml
Traceback (most recent call last):
  File "buildlib/cbuild", line 802, in <module>
    args.func(args);
  File "buildlib/cbuild", line 631, in cmd_pkg
    run_travis_build(args,env);
  File "buildlib/cbuild", line 621, in run_travis_build
    docker_cmd(args,*opts);
  File "buildlib/cbuild", line 371, in docker_cmd
    return subprocess.check_call(["sudo","docker"] + cmd);
  File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', 'docker', 'run', '--read-only', '--rm=true', '-v', '/tmp/tmpxhYvXb:/home/travis/build', '-v', '/home/jgg/work/plumbing/.git:/home/travis/build/src/.git:ro', '-w', '/home/travis/build/src', '-u', '2009', '-e', 'TRAVIS_COMMIT_RANGE=41e755a28d97c1965f03b1c6ce6dd7b63def424d..HEAD', '-e', 'TRAVIS_BRANCH=41e755a28d97c1965f03b1c6ce6dd7b63def424d', '-e', 'TRAVIS_EVENT_TYPE=pull_request', '-e', 'HOME=/home/travis', '-e', 'TMPDIR=/home/travis/build/tmp', 'build-rdma-core/travis', '/bin/bash', '/home/travis/build/go.sh']' returned non-zero exit status 1

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux