From 5b734342d1605cb68dcc362a6c282f039cc58b26 Mon Sep 17 00:00:00 2001 From: Euan T Date: Sun, 25 Jun 2017 23:14:48 +0100 Subject: [PATCH] Updated BuildServices (asciidoc) --- BuildServices.asciidoc | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/BuildServices.asciidoc b/BuildServices.asciidoc index e94b1d7..735ce54 100644 --- a/BuildServices.asciidoc +++ b/BuildServices.asciidoc @@ -23,6 +23,45 @@ nim c -r Be aware that the available .deb packages will change over time. +## Building Nim projects on Circle CI v2.0 (Currently in Beta) + +Circle CI are currently testing version 2 of their platform, where you can use Docker containers to perform builds. The following example is taken from the following guide and builds against the current Nim version on both Ubuntu and Alpine Linux: +https://www.euantorano.co.uk/posts/nim-circle-ci/[Continuous Integration for Nim using Circle CI] + +[source,yaml] +---- +version: 2 +jobs: + build: + working_directory: /usr/src/dotenv + docker: + - image: nimlang/nim + branches: + only: + - master + steps: + - checkout + - run: + name: test + command: nim c -r tests/main.nim + build_alpine: + working_directory: /usr/src/dotenv + docker: + - image: nimlang/nim:alpine + branches: + only: + - master + steps: + - checkout + - run: + name: test + command: nim c -r tests/main.nim +workflows: + version: 2 + build_and_test: + jobs: + - build + - build_alpine +---- ## Building Nim projects on Travis CI @@ -135,4 +174,3 @@ deploy: off ---- -