[A] Added build for arm with drone ci

This commit is contained in:
seleznevae 2019-05-24 22:32:22 +03:00
parent c347bc8230
commit cf7d6e0567
3 changed files with 74 additions and 6 deletions

69
.drone.yml Normal file
View File

@ -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

View File

@ -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)

View File

@ -7,6 +7,7 @@ platform:
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'