From c8a11227b53191686976bb6d5ffc25bfc3f47e90 Mon Sep 17 00:00:00 2001 From: Hans-Erik Floryd Date: Mon, 7 Aug 2017 17:33:08 +0200 Subject: [PATCH] Automated builds (#122) * add travis and appveyor build scripts * add travis and appveyor badges to README.md --- .travis.yml | 8 ++++++++ README.md | 5 +++++ appveyor.yml | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 .travis.yml create mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ac5b767 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: c + +script: + - mkdir build + - pushd build + - cmake .. -DCMAKE_BUILD_TYPE=Release + - make install + - popd diff --git a/README.md b/README.md index cf253b6..dd93c6f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ +# Simple Open EtherCAT Master Library +[![Build Status](https://travis-ci.org/OpenEtherCATsociety/SOEM.svg?branch=master)](https://travis-ci.org/OpenEtherCATsociety/SOEM) +[![Build status](https://ci.appveyor.com/api/projects/status/bqgirjsxog9k1odf?svg=true)](https://ci.appveyor.com/project/hefloryd/soem-5kq8b) + BUILDING ======== + Prerequisites for all platforms ------------------------------- diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..32acdb1 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,10 @@ +version: "{build}" + +install: + - cmd: '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x86' + +build_script: + - cmd: mkdir build + - cmd: cd build + - cmd: cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release + - cmd: nmake install