mirror of
https://github.com/boostorg/predef.git
synced 2025-07-29 11:37:13 +02:00
Make the lib test generic to main or PRs.
This commit is contained in:
@ -71,6 +71,22 @@ toolset_info = {
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
'clang-5.0' : {
|
||||
'deb' : ["http://apt.llvm.org/trusty/","llvm-toolchain-trusty-5.0","main"],
|
||||
'apt-key' : ['http://apt.llvm.org/llvm-snapshot.gpg.key'],
|
||||
'package' : 'clang-5.0',
|
||||
'command' : 'clang++-5.0',
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
'clang-6.0' : {
|
||||
'deb' : ["http://apt.llvm.org/trusty/","llvm-toolchain-trusty-6.0","main"],
|
||||
'apt-key' : ['http://apt.llvm.org/llvm-snapshot.gpg.key'],
|
||||
'package' : 'clang-6.0',
|
||||
'command' : 'clang++-6.0',
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
'gcc-4.7' : {
|
||||
'ppa' : ["ppa:ubuntu-toolchain-r/test"],
|
||||
'package' : 'g++-4.7',
|
||||
@ -121,6 +137,13 @@ toolset_info = {
|
||||
'toolset' : 'gcc',
|
||||
'version' : ''
|
||||
},
|
||||
'gcc-8' : {
|
||||
'ppa' : ["ppa:ubuntu-toolchain-r/test"],
|
||||
'package' : 'g++-8',
|
||||
'command' : 'g++-8',
|
||||
'toolset' : 'gcc',
|
||||
'version' : ''
|
||||
},
|
||||
'mingw-5' : {
|
||||
'toolset' : 'gcc',
|
||||
'command' : 'C:\\\\MinGW\\\\bin\\\\g++.exe',
|
||||
@ -221,6 +244,16 @@ toolset_info = {
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
'xcode-9.0' : {
|
||||
'command' : 'clang++',
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
'xcode-9.1' : {
|
||||
'command' : 'clang++',
|
||||
'toolset' : 'clang',
|
||||
'version' : ''
|
||||
},
|
||||
}
|
||||
|
||||
class SystemCallError(Exception):
|
||||
|
@ -94,14 +94,9 @@ class script(script_common):
|
||||
if self.repo != 'boost':
|
||||
utils.check_call("git","submodule","update","--quiet","--init",self.repo_path)
|
||||
if self.commit:
|
||||
# Checkout the library commit we are testing.
|
||||
os.chdir(self.repo_dir)
|
||||
if not self.pull_request:
|
||||
utils.check_call("git","checkout","-qf",self.commit)
|
||||
else:
|
||||
utils.check_call("git","fetch","origin","-q",
|
||||
"+refs/pull/{}/merge".format(self.pull_request))
|
||||
utils.check_call("git","checkout","-qf","FETCH_HEAD")
|
||||
# Copy in the existing library tree checkout.
|
||||
os.rmdir(self.repo_path)
|
||||
shutil.copytree(self.root_dir, self.repo_path)
|
||||
|
||||
# Fetch the dependencies for the library we are testing.
|
||||
if self.repo != 'boost':
|
||||
|
Reference in New Issue
Block a user