libfort/.drone.yml

85 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2019-05-24 21:32:22 +02:00
---
2021-06-22 17:50:49 +02:00
# NOTE: there were some problems when we just used `alpine` image so we pinned the exaxt
# version. Consider returning to just `alpine` image when it will be fixed.
2019-05-24 21:32:22 +02:00
kind: pipeline
name: test-on-amd64
platform:
arch: amd64
steps:
- name: test
2021-06-22 17:50:49 +02:00
image: alpine:3.12.3
2019-05-24 21:32:22 +02:00
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
2019-05-24 20:25:33 +02:00
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
2019-05-24 21:32:22 +02:00
- cmake --build . --target all
- ls
- ctest -VV
2019-11-30 13:09:40 +01:00
- name: test-tcc-compiler
2021-06-22 17:50:49 +02:00
image: alpine:3.12.3
2019-11-30 13:09:40 +01:00
commands:
2019-11-30 13:26:15 +01:00
- apk add gcc g++ cmake make binutils-gold
# tcc available only in in edge alpine repo
- echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
- apk add tcc
2019-11-30 13:09:40 +01:00
- ls
- uname -a
- mkdir -p build
- cd build
# Tests with wchar don't pass
- cmake .. -DCMAKE_C_COMPILER=/usr/bin/tcc -DFORT_ENABLE_WCHAR=OFF
- cmake --build . --target libfort_test_dev
- ./tests/libfort_test_dev
- cmake --build . --target libfort_test
- ./tests/libfort_test
2019-05-24 21:32:22 +02:00
---
kind: pipeline
name: test-on-arm
platform:
arch: arm
steps:
- name: test
2021-06-22 17:50:49 +02:00
image: alpine:3.12.3
2019-05-24 21:32:22 +02:00
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
2019-05-24 20:25:33 +02:00
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
2019-05-24 21:32:22 +02:00
- cmake --build . --target all
- ls
- ctest -VV
---
kind: pipeline
name: test-on-arm64
platform:
arch: arm64
steps:
- name: test
2021-06-22 17:50:49 +02:00
image: alpine:3.12.3
2019-05-24 21:32:22 +02:00
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
- uname -a
- mkdir -p build
- cd build
2019-05-24 20:25:33 +02:00
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_STANDARD=99 -DCMAKE_CXX_STANDARD=11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror"
2019-05-24 21:32:22 +02:00
- cmake --build . --target all
- ls
2019-11-30 13:09:40 +01:00
- ctest -VV