summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2020-04-17 09:24:30 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2020-04-17 09:44:14 +0200
commit6a1dd500ebba09e44ee717bc35ab42431000c331 (patch)
tree9aa2d09ec49ef41427c5ad8127ccb80e6a1b6171
parent0929c15fcdc5bd4c33c5d5df8fe4c4864a57482b (diff)
downloadffi-6a1dd500ebba09e44ee717bc35ab42431000c331.tar.gz
Add types_conf generation to CI
They can be applied per copy+paste from the CI logs.
-rw-r--r--.appveyor.yml1
-rw-r--r--.github/workflows/ci.yml1
-rw-r--r--.travis.yml1
-rw-r--r--spec/env/Dockerfile.armhf5
-rw-r--r--spec/env/Dockerfile.powerpc5
5 files changed, 9 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 00bfda3..4e61390 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -17,6 +17,7 @@ build_script:
- bundle exec rake libffi compile -- %EXTCONFOPTS% || bundle exec rake compile -- %EXTCONFOPTS%
test_script:
- bundle exec rake test
+ - bundle exec rake types_conf && git --no-pager diff
environment:
matrix:
- RUBYVER: "head-x64"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 02cb643..ee7d068 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,6 +27,7 @@ jobs:
# work around misconfiguration of libffi on MacOS with homebrew
PKG_CONFIG_PATH: ${{ env.PKG_CONFIG_PATH }}:/usr/local/opt/libffi/lib/pkgconfig
- run: bundle exec rake test
+ - run: bundle exec rake types_conf && git --no-pager diff
specs:
# Run all specs on all ruby implementations
diff --git a/.travis.yml b/.travis.yml
index 1483ab1..52f8913 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,6 +12,7 @@ script:
if [[ $(ruby -v) != *truffleruby* ]]; then
ITER=10 bundle exec rake bench:all
fi
+ - bundle exec rake types_conf && git --no-pager diff
os:
- linux
- osx
diff --git a/spec/env/Dockerfile.armhf b/spec/env/Dockerfile.armhf
index b3a80fd..8f83f2a 100644
--- a/spec/env/Dockerfile.armhf
+++ b/spec/env/Dockerfile.armhf
@@ -17,10 +17,11 @@ RUN ruby --version
WORKDIR /ffi
COPY . .
+ENV MAKE "make -j`nproc`"
RUN gem install bundler --no-doc && \
bundle install
-ENV MAKE "make -j`nproc`"
CMD bundle install && \
bundle exec rake libffi compile && \
- bundle exec rake test
+ bundle exec rake test && \
+ bundle exec rake types_conf && git --no-pager diff
diff --git a/spec/env/Dockerfile.powerpc b/spec/env/Dockerfile.powerpc
index 47eb376..d5390a1 100644
--- a/spec/env/Dockerfile.powerpc
+++ b/spec/env/Dockerfile.powerpc
@@ -17,10 +17,11 @@ RUN ruby --version
WORKDIR /ffi
COPY . .
+ENV MAKE "make -j`nproc`"
RUN gem install bundler --no-doc && \
bundle install
-ENV MAKE "make -j`nproc`"
CMD bundle install && \
bundle exec rake libffi compile && \
- bundle exec rake test
+ bundle exec rake test && \
+ bundle exec rake types_conf && git --no-pager diff