nim-docker/README.md

23 lines
1.1 KiB
Markdown
Raw Normal View History

2018-05-28 04:03:27 +00:00
**nim-docker [![Build Status](https://travis-ci.org/status-im/nim-docker.svg?branch=master)](https://travis-ci.org/status-im/nim-docker)**
2018-03-14 17:58:58 +00:00
2018-05-28 04:03:27 +00:00
# Introduction
2018-08-20 18:14:33 +00:00
This is a helper repo for auto-building a docker image with the [Nim](https://github.com/status-im/Nim) version that status currently uses for building [Nimbus](http://github.com/status-im/nimbus)
To set up [Travis CI](https://travis-ci.org) for your project by using this image, copy the following lines to your `.travis.yml` file in the root of your repository:
2018-03-14 17:58:58 +00:00
```yml
sudo: required
services:
- docker
before_install:
- docker pull statusteam/nim-base
script:
- docker run statusteam/nim-base nim --version
2018-03-14 18:24:30 +00:00
- docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble install -dy && nimble test"
2018-03-14 17:58:58 +00:00
```
2018-05-28 04:03:27 +00:00
Also, make sure that your project is enabled in [Travis CI](https://travis-ci.org). This configuration will run `nimble install -dy && nimble test` in the root of your repository.
2018-03-14 18:24:30 +00:00
2018-05-28 04:03:27 +00:00
# Adding Patches
2018-08-20 18:14:33 +00:00
This build follows the nimbus branch of Nim and will automatically update to any version used there - to add a patch to, simple merge it into the nimbus branch