From b8708722ae3f9e00202db230655234f5a8b96a75 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 6 Dec 2019 10:17:27 +0000 Subject: [PATCH 1/3] Backup copy of appveyor.yml --- appveyor.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..b4f4dc4c --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,23 @@ +version: 1.0.{build} +branches: + only: + - master +image: Visual Studio 2017 +configuration: +- Debug +- DebugNoSTL +clone_folder: c:\projects\etl +install: +- cmd: git submodule update --init --recursive +before_build: +- cmd: git clone https://github.com/unittest-cpp/unittest-cpp.git c:\projects\unittest-cpp +build: + project: test/vs2017/etl.vcxproj + verbosity: minimal +notifications: +- provider: Webhook + url: https://hooks.slack.com/services/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 + method: POST + on_build_success: true + on_build_failure: true + on_build_status_changed: true \ No newline at end of file From 58805d76ccaa7e2f989998265825699e8b5564de Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 6 Dec 2019 10:25:29 +0000 Subject: [PATCH 2/3] Merge remote-tracking branch 'origin/development' into feature/add_circle-ci_support --- README.md | 1 + include/etl/cstring.h | 2 +- include/etl/u16string.h | 2 +- include/etl/u32string.h | 2 +- include/etl/wstring.h | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f8a211b..10437ee1 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ AppVeyor ![build status](https://gitlab.com/ETLCPP/etl/badges/master/build.svg) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3c14cd918ccf40008d0bcd7b083d5946)](https://www.codacy.com/manual/jwellbelove/etl?utm_source=github.com&utm_medium=referral&utm_content=ETLCPP/etl&utm_campaign=Badge_Grade) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT) +[![Github All Releases](https://img.shields.io/github/downloads/ETLCPP/etl/total.svg)]() **Motivation** diff --git a/include/etl/cstring.h b/include/etl/cstring.h index 6812e2a8..122cdb3b 100644 --- a/include/etl/cstring.h +++ b/include/etl/cstring.h @@ -258,7 +258,7 @@ namespace etl template etl::string make_string(const char (&text) [MAX_SIZE]) { - return etl::string(text); + return etl::string(text, MAX_SIZE - 1); } } diff --git a/include/etl/u16string.h b/include/etl/u16string.h index f52417eb..3dd33aab 100644 --- a/include/etl/u16string.h +++ b/include/etl/u16string.h @@ -258,7 +258,7 @@ namespace etl template etl::u16string make_string(const char16_t (&text) [MAX_SIZE]) { - return etl::u16string(text); + return etl::u16string(text, MAX_SIZE - 1); } } diff --git a/include/etl/u32string.h b/include/etl/u32string.h index 3eec812e..7c01c7a7 100644 --- a/include/etl/u32string.h +++ b/include/etl/u32string.h @@ -258,7 +258,7 @@ namespace etl template etl::u32string make_string(const char32_t (&text) [MAX_SIZE]) { - return etl::u32string(text); + return etl::u32string(text, MAX_SIZE - 1); } } diff --git a/include/etl/wstring.h b/include/etl/wstring.h index 9b28eef2..c2533037 100644 --- a/include/etl/wstring.h +++ b/include/etl/wstring.h @@ -259,7 +259,7 @@ namespace etl template etl::wstring make_string(const wchar_t (&text) [MAX_SIZE]) { - return etl::wstring(text); + return etl::wstring(text, MAX_SIZE - 1); } } From 06429e140b406db85c4b0db2d383fa79f5766da8 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Fri, 6 Dec 2019 10:25:56 +0000 Subject: [PATCH 3/3] Initial CircleCI configuration --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..28e75cee --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +version: 2 + +jobs: + build: + docker: + - image: "debian:stretch" + steps: + - checkout + - run: + name: Installing SUDO + command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*' + - run: + name: Installing GCC + command: 'apt-get update && apt-get install -y gcc g++' + - run: + name: Install CMAKE + command: 'apt-get update && sudo apt-get install -y cmake' + - run: + name: Creating Build Files + command: 'cmake -H. -Bbuild' + - run: + name: Creating Binary Files + command: 'cmake --build build' + - run: + name: ETL Unit Testing + command: './bin/etl' \ No newline at end of file