diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-02-23 16:01:44 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-02-23 17:06:58 -0800 |
| commit | 56bcc0310c4710bb21802719566926c2ccd2262a (patch) | |
| tree | 1931836b0ae68e71a20f01621d6282ea6073f5f6 | |
| parent | a18bfe9c156be16f231e0bb380fc70fad22da20c (diff) | |
| download | nng-56bcc0310c4710bb21802719566926c2ccd2262a.tar.gz nng-56bcc0310c4710bb21802719566926c2ccd2262a.tar.bz2 nng-56bcc0310c4710bb21802719566926c2ccd2262a.zip | |
Remove CircleCI support.
CircleCI does not by default have modern CMake, and GitHub Actions
have proven to work more reliably, and with less friction.
| -rwxr-xr-x | .circleci/build-and-test.sh | 15 | ||||
| -rwxr-xr-x | .circleci/build-demos.sh | 13 | ||||
| -rw-r--r-- | .circleci/config.yml | 122 | ||||
| -rw-r--r-- | .circleci/images/clang/Dockerfile | 17 | ||||
| -rw-r--r-- | .circleci/images/docker-deploy.sh | 17 | ||||
| -rw-r--r-- | .circleci/images/gcc/Dockerfile | 16 | ||||
| -rwxr-xr-x | .circleci/run-cmake.sh | 11 |
7 files changed, 0 insertions, 211 deletions
diff --git a/.circleci/build-and-test.sh b/.circleci/build-and-test.sh deleted file mode 100755 index c4fb8eaa..00000000 --- a/.circleci/build-and-test.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# -# common build & test steps for CircleCI jobs -# - -cmake --version -ninja --version - -mkdir build -cd build -cmake -G Ninja -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Debug} -DNNG_ENABLE_COVERAGE=${COVERAGE:-OFF} -DBUILD_SHARED_LIBS=${SHARED_LIBS:=ON} .. -ninja -ninja install -env CTEST_OUTPUT_ON_FAILURE=1 ninja test diff --git a/.circleci/build-demos.sh b/.circleci/build-demos.sh deleted file mode 100755 index 488c142d..00000000 --- a/.circleci/build-demos.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# -# build the demos to make sure they all build cleanly -# - -for dir in demo/*; do - demo=$(basename $dir) - mkdir build-demo-${demo} - ( cd build-demo-${demo} && - cmake -G Ninja ../demo/${demo} && - ninja ) || exit 1 -done diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 2a3711f7..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,122 +0,0 @@ - -# TODO: create custom docker images for each of these environments -# to avoid re-downloading & installing dependencies each time - -version: 2.0 -jobs: - "clang - build, test": - docker: - - image: ubuntu:16.04 - environment: - CC: clang-6.0 - CXX: clang++-6.0 - CLANG_FORMAT: clang-format-6.0 - CTEST_OUTPUT_ON_FAILURE: 1 - steps: - - checkout - - run: apt-get update -qq - - run: apt-get install -y software-properties-common - # llvm apt details: https://apt.llvm.org - - run: apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" - - run: apt-get update -qq - - run: > - apt-get install -y --allow-unauthenticated - build-essential - asciidoctor - cmake - libmbedtls-dev - ninja-build - clang-6.0 - clang-format-6.0 - - run: ./etc/format-check.sh - - run: ./.circleci/build-and-test.sh - - "gcc - static": - docker: - - image: ubuntu:16.04 - environment: - CC: gcc - CXX: g++ - SHARED_LIBS: OFF - CTEST_OUTPUT_ON_FAILURE: 1 - steps: - - checkout - - run: apt-get update -qq - - run: apt-get install -y software-properties-common - - run: add-apt-repository ppa:ubuntu-toolchain-r/test - - run: apt-get update -qq - - run: > - apt-get install -y --allow-unauthenticated - build-essential - cmake - libmbedtls-dev - ninja-build - - run: ./.circleci/build-and-test.sh - - "gcc - demos": - docker: - - image: ubuntu:16.04 - environment: - CC: gcc - CXX: g++ - CTEST_OUTPUT_ON_FAILURE: 1 - steps: - - checkout - - run: apt-get update -qq - - run: apt-get install -y software-properties-common - - run: add-apt-repository ppa:ubuntu-toolchain-r/test - - run: apt-get update -qq - - run: > - apt-get install -y --allow-unauthenticated - build-essential - cmake - libmbedtls-dev - ninja-build - - run: ./.circleci/run-cmake.sh - - run: ninja -C build - - run: ninja -C build install - - run: ./.circleci/build-demos.sh - - "gcc - build, test, coverage": - docker: - - image: ubuntu:16.04 - environment: - CC: gcc-8 - CXX: g++-8 - COVERAGE: "ON" - GCOV: gcov-8 - CTEST_OUTPUT_ON_FAILURE: 1 - steps: - - checkout - - run: apt-get update -qq - - run: apt-get install -y software-properties-common - - run: add-apt-repository ppa:ubuntu-toolchain-r/test - - run: apt-get update -qq - - run: > - apt-get install -y --allow-unauthenticated - build-essential - curl - asciidoctor - cmake - libmbedtls-dev - ninja-build - gcc-8 - g++-8 - - run: ./.circleci/build-and-test.sh - - run: ./etc/codecov.sh - -workflows: - version: 2 - build_and_test: - jobs: - - "clang - build, test" - - "gcc - static" - - "gcc - build, test, coverage" - - "gcc - demos" - -#notify: -# webhooks: -# # A list of hook hashes, containing the url field -# # gitter hook -# - url: ${GITTER_WEBHOOK} - diff --git a/.circleci/images/clang/Dockerfile b/.circleci/images/clang/Dockerfile deleted file mode 100644 index 02444a11..00000000 --- a/.circleci/images/clang/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -FROM ubuntu:16.04 - -RUN apt-get update -qq && apt-get install -y software-properties-common -RUN apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-4.0 main" -RUN apt-get update -qq && apt-get install -y \ - asciidoctor \ - build-essential \ - clang-4.0 \ - clang++-4.0 \ - clang-format-4.0 \ - cmake \ - curl \ - git \ - gzip \ - libmbedtls-dev \ - ninja-build \ - openssh-client diff --git a/.circleci/images/docker-deploy.sh b/.circleci/images/docker-deploy.sh deleted file mode 100644 index 5ebb1d84..00000000 --- a/.circleci/images/docker-deploy.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# increment tag each time either dockerfile changes -TAG=0.0.1 - -docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD - -pushd clang -docker build -t nng/ci/clang:$TAG . -popd - -pushd gcc -docker build -t nng/ci/gcc:$TAG . -popd - -docker push nng/ci/clang:$TAG -docker push nng/ci/gcc:$TAG diff --git a/.circleci/images/gcc/Dockerfile b/.circleci/images/gcc/Dockerfile deleted file mode 100644 index 783717ed..00000000 --- a/.circleci/images/gcc/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM ubuntu:16.04 - -RUN apt-get update -qq && apt-get install -y software-properties-common -RUN add-apt-repository ppa:ubuntu-toolchain-r/test -RUN apt-get update -qq && apt-get install -y \ - asciidoctor \ - build-essential \ - cmake \ - curl \ - g++-7 \ - gcc-7 \ - git \ - gzip \ - libmbedtls-dev \ - ninja-build \ - openssh-client diff --git a/.circleci/run-cmake.sh b/.circleci/run-cmake.sh deleted file mode 100755 index ca0caaa4..00000000 --- a/.circleci/run-cmake.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# -# common build & test steps for CircleCI jobs -# -cmake --version -ninja --version - -mkdir build -cd build -cmake -G Ninja -DCMAKE_BUILD_TYPE=${BUILD_TYPE:-Debug} -DNNG_ENABLE_COVERAGE=${COVERAGE:-OFF} -DBUILD_SHARED_LIBS=${SHARED_LIBS:=ON} .. |
