diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..22354e6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: [ push, pull_request, workflow_dispatch ] + +jobs: + build_and_test: + name: Build & Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build and run tests + run: > + docker run --rm + -v "${GITHUB_WORKSPACE}:/workspace" + julrich/docker_qt:latest + /bin/bash -c " + cd /workspace + && g++ --version + && qmake --version + && cd tests + && mkdir _build + && cd _build + && cmake -DCMAKE_BUILD_TYPE=Release .. + && make all + && ctest --ouput-on-failure + " \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ed6f731..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: required - -language: cpp - -services: - - docker - -before_script: - - cd tests - - docker build -t j-ulrich/http-status-codes -f Dockerfile .. - -script: - - > - docker run j-ulrich/http-status-codes /bin/bash -c " - g++ --version - && qmake --version - && cd tests - && mkdir _build - && cd _build - && cmake -DCMAKE_BUILD_TYPE=Release .. - && make all - && ctest --ouput-on-failure - " \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdb0f5..a8d522b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,6 @@ Updates and adds missing status codes from the IANA registry. - {C++11} Added missing `Code::xxx_max` enumerator. - --- diff --git a/tests/Dockerfile b/tests/Dockerfile deleted file mode 100644 index 878dfba..0000000 --- a/tests/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM julrich/docker_qt:latest - -RUN mkdir /build -COPY . /build -WORKDIR /build