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

Enable ppc64le in echo-api #212

Merged
merged 1 commit into from
Jul 19, 2021
Merged
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
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: ruby
dist: bionic
arch: ppc64le
os: linux

before_install:
- .travis/setup_${TRAVIS_CPU_ARCH}_env.sh

install:
- .travis/install_${TRAVIS_CPU_ARCH}_env.sh

script:
- .travis/build_${TRAVIS_CPU_ARCH}.sh
13 changes: 13 additions & 0 deletions .travis/build_ppc64le.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -ev

# Start Echo API
cd ..
bundle exec rackup --port 3000 --host 0.0.0.0 --env production &
Comment on lines +6 to +7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self - I think the job would fail here :-(

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, guess we'll find out soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess was right, I will push few changes on top of this.
configuration /home/travis/build/3scale/config.ru not found


# Sleep
sleep 10

# test Echo API
curl --fail http://0.0.0.0:3000/test
8 changes: 8 additions & 0 deletions .travis/install_ppc64le_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -ev

bundle config --local set path 'vendor/bundle'
bundle lock --add-platform powerpc64le-linux

bundle check || bundle install --jobs=3 --retry=3
5 changes: 5 additions & 0 deletions .travis/setup_ppc64le_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -ev

gem install bundler --version 2.2.4
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ GEM
tilt (2.0.10)

PLATFORMS
powerpc64le-linux
ruby
x86_64-linux

Expand Down