From cf7d6e0567fedf61873b17fd3c2649268b392123 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Fri, 24 May 2019 22:32:22 +0300 Subject: [PATCH] [A] Added build for arm with drone ci --- .drone.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 1 + appveyor.yml | 10 +++----- 3 files changed, 74 insertions(+), 6 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ef1faa6 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,69 @@ +--- +kind: pipeline +name: test-on-amd64 + +platform: + arch: amd64 + +steps: + - name: test + image: alpine + commands: + - apk add gcc g++ cmake make binutils-gold + - CMAKE_C_FLAGS="-Werror" + - CMAKE_CXX_FLAGS="-Werror" + - ls + - uname -a + - mkdir -p build + - cd build + - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" + - cmake --build . --target all + - ls + - ctest -VV + + +--- +kind: pipeline +name: test-on-arm + +platform: + arch: arm + +steps: + - name: test + image: alpine + commands: + - apk add gcc g++ cmake make binutils-gold + - CMAKE_C_FLAGS="-Werror" + - CMAKE_CXX_FLAGS="-Werror" + - ls + - uname -a + - mkdir -p build + - cd build + - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" + - cmake --build . --target all + - ls + - ctest -VV + +--- +kind: pipeline +name: test-on-arm64 + +platform: + arch: arm64 + +steps: + - name: test + image: alpine + commands: + - apk add gcc g++ cmake make binutils-gold + - CMAKE_C_FLAGS="-Werror" + - CMAKE_CXX_FLAGS="-Werror" + - ls + - uname -a + - mkdir -p build + - cd build + - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" + - cmake --build . --target all + - ls + - ctest -VV \ No newline at end of file diff --git a/README.md b/README.md index f3af424..d91e231 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build Status](https://travis-ci.org/seleznevae/libfort.svg?branch=master)](https://travis-ci.org/seleznevae/libfort) [![Build Status](https://api.cirrus-ci.com/github/seleznevae/libfort.svg)](https://cirrus-ci.com/github/seleznevae/libfort) [![Build status](https://ci.appveyor.com/api/projects/status/ll1qygb56pho95xw/branch/master?svg=true)](https://ci.appveyor.com/project/seleznevae/libfort/branch/master) +[![Build Status](https://cloud.drone.io/api/badges/seleznevae/libfort/status.svg?ref=/refs/heads/develop)](https://cloud.drone.io/seleznevae/libfort) [![Coverage Status](https://coveralls.io/repos/github/seleznevae/libfort/badge.svg?branch=master)](https://coveralls.io/github/seleznevae/libfort?branch=master) [![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/qQpqv3ujZ22ABVOz) [![Documentation](https://img.shields.io/badge/docs-doxygen-blue.svg)](http://seleznevae.github.io/libfort) diff --git a/appveyor.yml b/appveyor.yml index 4273e7c..fd4e409 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -4,9 +4,10 @@ image: Visual Studio 2017 platform: - x64 - + configuration: - Debug + - Release install: - git submodule update --init --recursive @@ -22,10 +23,7 @@ build: test_script: - dir - - ctest -VV -C Debug - - cd Debug + - ctest -VV -C %CONFIGURATION% + - cd %CONFIGURATION% - dir - ctest -VV -# - '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_test_dev.exe' -# - '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_test.exe' -# - '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_example.exe'