https://github.com/kabirbaidhya/testc
Hello World C project with unit tests and docker
https://github.com/kabirbaidhya/testc
c docker gcc hello-world makefile tests unit
Last synced: 4 months ago
JSON representation
Hello World C project with unit tests and docker
- Host: GitHub
- URL: https://github.com/kabirbaidhya/testc
- Owner: kabirbaidhya
- Created: 2019-07-22T16:26:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-22T18:24:48.000Z (almost 6 years ago)
- Last Synced: 2024-12-30T01:46:49.618Z (6 months ago)
- Topics: c, docker, gcc, hello-world, makefile, tests, unit
- Language: Makefile
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testc

[](https://lgtm.com/projects/g/kabirbaidhya/testc/context:cpp)Hello World C Project with Unit Tests.
## Usage
#### Building
```
$ make build
```#### Running
```
$ ./bin/app
Hello World!
```#### Clean
```
$ make clean
```## Running Tests
```
$ make test && ./bin/test
```## Docker
#### Sample Dockerfile```Dockerfile
FROM gcc:7 AS builder
COPY . /source
WORKDIR /source
RUN make buildFROM scratch
COPY --from=builder /source /source
WORKDIR /source
CMD ["./bin/app"]
```#### Building
```
$ docker build -t kabirbaidhya/testc .
```#### Running
```
$ docker run kabirbaidhya/testc
```