-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
41 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,16 @@ | ||
language: c | ||
language: ruby | ||
|
||
arch: | ||
- amd64 | ||
- arm64 | ||
- ppc64le | ||
addons: | ||
apt: | ||
packages: | ||
- docker-ce | ||
|
||
cache: | ||
directories: | ||
- /home/travis/.rbenv/ | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt update | ||
- sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | ||
|
||
before_script: | ||
- "export CRUBY_VERSION=$(ruby -e'puts `grep cruby_version .mrubycconfig`.sub(\"cruby_version: \", \"\")')" | ||
- export MRUBY_VERSION=$(grep mruby .ruby-version) | ||
- if [ ! -e ~/.rbenv/bin/rbenv ]; then git clone https://github.com/rbenv/rbenv.git ~/.rbenv; fi | ||
- if [ ! -e ~/.rbenv/plugins/ruby-build/bin/ruby-build ]; then git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build; fi | ||
- cd ~/.rbenv/plugins/ruby-build && git pull && cd - | ||
- echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | ||
- source ~/.bash_profile | ||
- echo $PATH | ||
- rbenv init - | ||
- rbenv install --skip-existing $MRUBY_VERSION | ||
- rbenv install --skip-existing $CRUBY_VERSION | ||
- RBENV_VERSION=$CRUBY_VERSION gem install bundler | ||
- RBENV_VERSION=$CRUBY_VERSION bundle install | ||
- docker build -t mrubyc/mrubyc-test . | ||
|
||
script: | ||
- RBENV_VERSION=$CRUBY_VERSION CFLAGS="-DMRBC_USE_MATH=1 -DMAX_SYMBOLS_COUNT=500" bundle exec mrubyc-test --every=100 | ||
- docker run --mount type=bind,src=${PWD}/,dst=/mrubyc mrubyc/mrubyc-test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from ruby:2.7.2-slim | ||
|
||
RUN apt update && apt -y upgrade | ||
RUN apt install -y bison make git gcc gcc-arm-linux-gnueabi qemu qemu-kvm qemu-system-arm | ||
|
||
RUN gem update --system | ||
|
||
RUN git clone https://github.com/mruby/mruby /root/mruby | ||
ARG MRUBY_TAG | ||
RUN cd /root/mruby; git checkout $MRUBY_TAG; make | ||
|
||
VOLUME /root/mrubyc | ||
COPY Gemfile /root/mrubyc/ | ||
COPY Gemfile.lock /root/mrubyc/ | ||
WORKDIR /root/mrubyc | ||
RUN bundle install | ||
ENV CFLAGS="-DMRBC_USE_MATH=1 -DMAX_SYMBOLS_COUNT=500" | ||
CMD ["bundle", "exec", "mrubyc-test", "-e", "100", "-p", "/root/mruby/build/host/bin/mrbc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "mrubyc-test", "~> 0.5.3" | ||
gem "mrubyc-test", "~> 0.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
# | ||
|
||
RUBY_VERSION = "1.9" | ||
MRUBY_VERSION = "2.1.1" | ||
MRUBYC_VERSION = "2.1" |
This file was deleted.
Oops, something went wrong.