Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add xlsx-validator to travis build matrix #520

Open
wants to merge 2 commits into
base: release-3.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.bundle
vendor
ci/Dockerfile
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ unzip
coverage
.yardoc
coverage.data
vendor
*.gem
*.xlsx
example.csv
Expand All @@ -18,4 +19,4 @@ examples/sprk2012
.~lock*
*.qcachegrind
*.iml
.idea
.idea
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ matrix:
- rvm: ruby-head
- rvm: jruby-head
env: JRUBY_OPTS="-Xcli.debug=true --debug"
- services: docker
before_install: docker build . -f ci/Dockerfile -t axlsx
script: docker run axlsx ci/validate-xlsx-files.sh
allow_failures:
- rvm: rbx-3
- rvm: ruby-head
- rvm: jruby-9.1.8.0
- rvm: jruby-head
- services: docker

# https://github.com/jruby/jruby/wiki/FAQs#why-is-jruby-so-slow-to-install-via-rvm
# https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon
Expand Down
13 changes: 13 additions & 0 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vim: set ft=Dockerfile

FROM vindvaki/xlsx-validator

RUN apt-get install -y build-essential ruby ruby-dev libxslt-dev libxml2-dev zlib1g-dev
RUN gem install bundler
ADD Gemfile* axlsx.gemspec /app/axlsx/
WORKDIR /app/axlsx/
ADD lib/axlsx/version.rb lib/axlsx/version.rb
RUN bundle install
ADD . .

ADD ci/validate-xlsx-files.sh .
4 changes: 4 additions & 0 deletions ci/validate-xlsx-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

bundle exec ruby examples/example.rb
xlsx-validator *.xlsx