Skip to content

Commit f605a6e

Browse files
authored
Merge pull request #212 from krishvoor/master
Enable ppc64le in echo-api
2 parents e98ce83 + 136895c commit f605a6e

5 files changed

+40
-0
lines changed

.travis.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: ruby
2+
dist: bionic
3+
arch: ppc64le
4+
os: linux
5+
6+
before_install:
7+
- .travis/setup_${TRAVIS_CPU_ARCH}_env.sh
8+
9+
install:
10+
- .travis/install_${TRAVIS_CPU_ARCH}_env.sh
11+
12+
script:
13+
- .travis/build_${TRAVIS_CPU_ARCH}.sh

.travis/build_ppc64le.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -ev
4+
5+
# Start Echo API
6+
cd ..
7+
bundle exec rackup --port 3000 --host 0.0.0.0 --env production &
8+
9+
# Sleep
10+
sleep 10
11+
12+
# test Echo API
13+
curl --fail http://0.0.0.0:3000/test

.travis/install_ppc64le_env.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -ev
4+
5+
bundle config --local set path 'vendor/bundle'
6+
bundle lock --add-platform powerpc64le-linux
7+
8+
bundle check || bundle install --jobs=3 --retry=3

.travis/setup_ppc64le_env.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
set -ev
4+
5+
gem install bundler --version 2.2.4

Gemfile.lock

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ GEM
3737
tilt (2.0.10)
3838

3939
PLATFORMS
40+
powerpc64le-linux
4041
ruby
4142
x86_64-linux
4243

0 commit comments

Comments
 (0)