-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redirect external dir to imported. Create import script.
- Loading branch information
Showing
14,853 changed files
with
1,917,752 additions
and
1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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 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,25 @@ | ||
--- | ||
AccessModifierOffset: '-4' | ||
AlignEscapedNewlines: Left | ||
AllowAllConstructorInitializersOnNextLine: 'true' | ||
BinPackArguments: 'false' | ||
BinPackParameters: 'false' | ||
BreakConstructorInitializers: AfterColon | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' | ||
DerivePointerAlignment: 'false' | ||
FixNamespaceComments: 'true' | ||
IncludeBlocks: Regroup | ||
IndentCaseLabels: 'false' | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: '4' | ||
Language: Cpp | ||
NamespaceIndentation: All | ||
PointerAlignment: Left | ||
SpaceBeforeCtorInitializerColon: 'false' | ||
SpaceInEmptyParentheses: 'false' | ||
SpacesInParentheses: 'true' | ||
Standard: Cpp11 | ||
TabWidth: '4' | ||
UseTab: Never | ||
|
||
... |
This file contains 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,94 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
import re | ||
from cpt.packager import ConanMultiPackager | ||
from cpt.ci_manager import CIManager | ||
from cpt.printer import Printer | ||
|
||
|
||
class BuilderSettings(object): | ||
@property | ||
def username(self): | ||
""" Set catchorg as package's owner | ||
""" | ||
return os.getenv("CONAN_USERNAME", "catchorg") | ||
|
||
@property | ||
def login_username(self): | ||
""" Set Bintray login username | ||
""" | ||
return os.getenv("CONAN_LOGIN_USERNAME", "horenmar") | ||
|
||
@property | ||
def upload(self): | ||
""" Set Catch2 repository to be used on upload. | ||
The upload server address could be customized by env var | ||
CONAN_UPLOAD. If not defined, the method will check the branch name. | ||
Only master or CONAN_STABLE_BRANCH_PATTERN will be accepted. | ||
The master branch will be pushed to testing channel, because it does | ||
not match the stable pattern. Otherwise it will upload to stable | ||
channel. | ||
""" | ||
return os.getenv("CONAN_UPLOAD", "https://api.bintray.com/conan/catchorg/catch2") | ||
|
||
@property | ||
def upload_only_when_stable(self): | ||
""" Force to upload when running over tag branch | ||
""" | ||
return os.getenv("CONAN_UPLOAD_ONLY_WHEN_STABLE", "True").lower() in ["true", "1", "yes"] | ||
|
||
@property | ||
def stable_branch_pattern(self): | ||
""" Only upload the package the branch name is like a tag | ||
""" | ||
return os.getenv("CONAN_STABLE_BRANCH_PATTERN", r"v\d+\.\d+\.\d+") | ||
|
||
@property | ||
def reference(self): | ||
""" Read project version from branch create Conan reference | ||
""" | ||
return os.getenv("CONAN_REFERENCE", "Catch2/{}".format(self._version)) | ||
|
||
@property | ||
def channel(self): | ||
""" Default Conan package channel when not stable | ||
""" | ||
return os.getenv("CONAN_CHANNEL", "testing") | ||
|
||
@property | ||
def _version(self): | ||
""" Get version name from cmake file | ||
""" | ||
pattern = re.compile(r"project\(Catch2 LANGUAGES CXX VERSION (\d+\.\d+\.\d+)\)") | ||
version = "latest" | ||
with open("CMakeLists.txt") as file: | ||
for line in file: | ||
result = pattern.search(line) | ||
if result: | ||
version = result.group(1) | ||
return version | ||
|
||
@property | ||
def _branch(self): | ||
""" Get branch name from CI manager | ||
""" | ||
printer = Printer(None) | ||
ci_manager = CIManager(printer) | ||
return ci_manager.get_branch() | ||
|
||
|
||
if __name__ == "__main__": | ||
settings = BuilderSettings() | ||
builder = ConanMultiPackager( | ||
reference=settings.reference, | ||
channel=settings.channel, | ||
upload=settings.upload, | ||
upload_only_when_stable=settings.upload_only_when_stable, | ||
stable_branch_pattern=settings.stable_branch_pattern, | ||
login_username=settings.login_username, | ||
username=settings.username, | ||
test_folder=os.path.join(".conan", "test_package")) | ||
builder.add() | ||
builder.run() |
11 changes: 11 additions & 0 deletions
11
external_imported/Catch2/.conan/test_package/CMakeLists.txt
This file contains 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,11 @@ | ||
cmake_minimum_required(VERSION 3.2.0) | ||
project(test_package CXX) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(Catch2 REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} CONAN_PKG::Catch2) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 11) |
This file contains 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,19 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
from conans import ConanFile, CMake | ||
import os | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "cmake" | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
assert os.path.isfile(os.path.join(self.deps_cpp_info["Catch2"].rootpath, "licenses", "LICENSE.txt")) | ||
bin_path = os.path.join("bin", "test_package") | ||
self.run("%s -s" % bin_path, run_environment=True) |
15 changes: 15 additions & 0 deletions
15
external_imported/Catch2/.conan/test_package/test_package.cpp
This file contains 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,15 @@ | ||
#define CATCH_CONFIG_MAIN | ||
|
||
#include <catch2/catch.hpp> | ||
|
||
int Factorial( int number ) { | ||
return number <= 1 ? 1 : Factorial( number - 1 ) * number; | ||
} | ||
|
||
TEST_CASE( "Factorial Tests", "[single-file]" ) { | ||
REQUIRE( Factorial(0) == 1 ); | ||
REQUIRE( Factorial(1) == 1 ); | ||
REQUIRE( Factorial(2) == 2 ); | ||
REQUIRE( Factorial(3) == 6 ); | ||
REQUIRE( Factorial(10) == 3628800 ); | ||
} |
This file contains 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,22 @@ | ||
# This sets the default behaviour, overriding core.autocrlf | ||
* text=auto | ||
|
||
# All source files should have unix line-endings in the repository, | ||
# but convert to native line-endings on checkout | ||
*.cpp text | ||
*.h text | ||
*.hpp text | ||
|
||
# Windows specific files should retain windows line-endings | ||
*.sln text eol=crlf | ||
|
||
# Keep executable scripts with LFs so they can be run after being | ||
# checked out on Windows | ||
*.py text eol=lf | ||
|
||
|
||
# Keep the single include header with LFs to make sure it is uploaded, | ||
# hashed etc with LF | ||
single_include/**/*.hpp eol=lf | ||
# Also keep the LICENCE file with LFs for the same reason | ||
LICENCE.txt eol=lf |
This file contains 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 @@ | ||
custom: "https://www.paypal.me/horenmar" |
29 changes: 29 additions & 0 deletions
29
external_imported/Catch2/.github/ISSUE_TEMPLATE/bug_report.md
This file contains 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,29 @@ | ||
--- | ||
name: Bug report | ||
about: Create an issue that documents a bug | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Reproduction steps** | ||
Steps to reproduce the bug. | ||
<!-- Usually this means a small and self-contained piece of code that uses Catch and specifying compiler flags if relevant. --> | ||
|
||
|
||
**Platform information:** | ||
<!-- Fill in any extra information that might be important for your issue. --> | ||
- OS: **Windows NT** | ||
- Compiler+version: **GCC v2.9.5** | ||
- Catch version: **v1.2.3** | ||
|
||
|
||
**Additional context** | ||
Add any other context about the problem here. |
14 changes: 14 additions & 0 deletions
14
external_imported/Catch2/.github/ISSUE_TEMPLATE/feature_request.md
This file contains 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,14 @@ | ||
--- | ||
name: Feature request | ||
about: Create an issue that requests a feature or other improvement | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Description** | ||
Describe the feature/change you request and why do you want it. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains 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,28 @@ | ||
<!-- | ||
Please do not submit pull requests changing the `version.hpp` | ||
or the single-include `catch.hpp` file, these are changed | ||
only when a new release is made. | ||
Before submitting a PR you should probably read the contributor documentation | ||
at docs/contributing.md. It will tell you how to properly test your changes. | ||
--> | ||
|
||
|
||
## Description | ||
<!-- | ||
Describe the what and the why of your pull request. Remember that these two | ||
are usually a bit different. As an example, if you have made various changes | ||
to decrease the number of new strings allocated, that's what. The why probably | ||
was that you have a large set of tests and found that this speeds them up. | ||
--> | ||
|
||
## GitHub Issues | ||
<!-- | ||
If this PR was motivated by some existing issues, reference them here. | ||
If it is a simple bug-fix, please also add a line like 'Closes #123' | ||
to your commit message, so that it is automatically closed. | ||
If it is not, don't, as it might take several iterations for a feature | ||
to be done properly. If in doubt, leave it open and reference it in the | ||
PR itself, so that maintainers can decide. | ||
--> |
This file contains 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,31 @@ | ||
*.build | ||
*.pbxuser | ||
*.mode1v3 | ||
*.ncb | ||
*.suo | ||
Debug | ||
Release | ||
*.user | ||
*.xcuserstate | ||
.DS_Store | ||
xcuserdata | ||
CatchSelfTest.xcscheme | ||
Breakpoints.xcbkptlist | ||
projects/VS2010/TestCatch/_UpgradeReport_Files/ | ||
projects/VS2010/TestCatch/TestCatch/TestCatch.vcxproj.filters | ||
projects/VisualStudio/TestCatch/UpgradeLog.XML | ||
projects/CMake/.idea | ||
projects/CMake/cmake-build-debug | ||
UpgradeLog.XML | ||
Resources/DWARF | ||
projects/Generated | ||
*.pyc | ||
DerivedData | ||
*.xccheckout | ||
Build | ||
.idea | ||
.vs | ||
cmake-build-* | ||
benchmark-dir | ||
.conan/test_package/build | ||
bazel-* |
Oops, something went wrong.