-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create CircleCI config * Add workaround to publish coveralls from non-travis CI Found at eddyxu/cpp-coveralls#143 (comment) * Install PyYAML for cpp-coveralls It needs this to parse it's own config * Rename docker workdir to "app" * Copy .git into the container since CircleCI doesn't support mounts
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: cimg/base:stable | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- run: | ||
name: Build Docker Container | ||
command: docker build -t app . | ||
- run: | ||
name: Run Docker Tests | ||
command: | | ||
docker create --rm \ | ||
-e TRAVIS_JOB_ID=$CIRCLE_BUILD_NUM \ | ||
-e COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN \ | ||
--name app \ | ||
app make coveralls | ||
# CircleCI doesn't allow mounts/volumes on the docker runner | ||
docker cp .git app:/app/.git | ||
docker start -a app | ||
workflows: | ||
default: | ||
jobs: | ||
- build |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ubuntu | ||
|
||
RUN apt-get update && apt-get -y install build-essential git python3-pip | ||
RUN pip install cpp-coveralls | ||
RUN pip install 'pyyaml<6' cpp-coveralls | ||
|
||
COPY . /src | ||
WORKDIR src | ||
COPY . /app | ||
WORKDIR app | ||
CMD make test |
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