Skip to content

Commit

Permalink
cleaning up some codacity warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thirtytwobits committed May 24, 2019
1 parent e77f2b6 commit 90cf618
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ UAVCAN stack in C++

[![Build Status](https://badge.buildkite.com/af844974c06af6406e3b2192d98298b02b30f6ebebb5f8b16c.svg)](https://buildkite.com/uavcan/libuavcan-v1)
[![Forum](https://img.shields.io/discourse/https/forum.uavcan.org/users.svg)](https://forum.uavcan.org)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5d487b332d99498699a0af687fa513a1)](https://www.codacy.com/app/UAVCAN/libuavcan_v1?utm_source=github.com&utm_medium=referral&utm_content=UAVCAN/libuavcan&utm_campaign=Badge_Grade)

Portable reference implementation of the [UAVCAN protocol stack](https://new.uavcan.org) in C++ for embedded systems, Linux, and POSIX-compliant RTOSs.

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Builds a docker image for test and validation builds.
#
FROM uavcan/libuavcan
FROM uavcan/libuavcan:latest

VOLUME /repo

Expand Down
14 changes: 7 additions & 7 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for development, continuous-integration, and test automation.

(these instructions assume you have docker installed and running)

```
```bash
cd /path/to/libuavcan

docker pull uavcan/libuavcan:latest
Expand All @@ -21,23 +21,23 @@ docker run --rm -t -v /path/to/libuavcan/build:/repo uavcan/libuavcan:latest /bi

On macintosh you'll probably want to optimize osxfs with something like cached or delegated:

```
```bash
docker run --rm -t -v /path/to/libuavcan/build:/repo:delegated uavcan/libuavcan:latest /bin/sh -c 'cd build_docker && mkdir make -j8'
```

See ["Performance tuning for volume mounts"](https://docs.docker.com/docker-for-mac/osxfs-caching/) for details.

Finally, to enter an interactive shell in this container something like this should work:

```
```bash
docker run --rm -it -v /path/to/libuavcan:/repo uavcan/libuavcan:latest
```

## Travis CI

You can use this in your .travis.yml like this:

```
```bash
language: cpp

services:
Expand All @@ -55,16 +55,16 @@ script:

These instructions are for maintainers with permissions to push to the [uavcan organization on Docker Hub](https://cloud.docker.com/u/uavcan).

```
```bash
docker build .
```
```
```bash
docker images

REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 736647481ad3 About a minute ago 1GB
```
```
```bash
docker tag 736647481ad3 uavcan/libuavcan:latest
docker login --username=yourhubusername
docker push uavcan/libuavcan:latest
Expand Down

0 comments on commit 90cf618

Please sign in to comment.