-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from cfe-lab/PutMethodsInModule
The align_it and align_it_aa methods now belong to the module "Gotoh".
- Loading branch information
Showing
25 changed files
with
2,033 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
ARG UBUNTU_VERSION=20.04 | ||
|
||
FROM ubuntu:${UBUNTU_VERSION} AS base | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/cfe-lab/gotoh | ||
LABEL org.opencontainers.image.description="Gotoh dev container for development and testing" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
ENV TZ=America/Vancouver \ | ||
RUBY_VERSION=2.2.2 \ | ||
BUNDLER_VERSION=1.17.3 | ||
|
||
RUN apt-get -y update &&\ | ||
apt-get -y upgrade &&\ | ||
apt-get install -y curl gpg | ||
|
||
RUN echo "deb http://security.ubuntu.com/ubuntu/ bionic-security main" >> /etc/apt/sources.list &&\ | ||
echo "deb http://security.ubuntu.com/ubuntu/ bionic main" >> /etc/apt/sources.list &&\ | ||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 &&\ | ||
apt update &&\ | ||
apt install -y \ | ||
gawk=1:4.1.4+dfsg-1build1 | ||
|
||
RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \ | ||
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import - && \ | ||
curl -sSL https://get.rvm.io | bash -s stable && \ | ||
usermod -a -G rvm root | ||
|
||
RUN /bin/bash -l -c "source /etc/profile.d/rvm.sh && rvm pkg install openssl" | ||
RUN /bin/bash -l -c "source /etc/profile.d/rvm.sh && rvm requirements && rvm install ${RUBY_VERSION} --with-openssl-dir=/usr/local/rvm/usr && rvm --default use ${RUBY_VERSION}" |
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,15 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | ||
{ | ||
"name": "CfE Ubuntu Ruby", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"updateContentCommand": "cd /workspaces/gotoh/ruby && bundle install", | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {} | ||
} | ||
} |
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,49 @@ | ||
name: Build and publish the Ruby package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build_gem: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
CFE_GOTOH_VERSION: ${{ github.ref_name }} | ||
BUILD_PATH: ${{ github.workspace }}/ruby | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout code from repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log into GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build devcontainer and build the package | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/cfe-lab/gotoh_devcontainer | ||
cacheFrom: ghcr.io/cfe-lab/gotoh_devcontainer | ||
runCmd: cd /workspaces/gotoh/ruby && bash build_gem.bash | ||
env: | | ||
CFE_GOTOH_VERSION | ||
- name: Publish gem to Github Packages | ||
run: | | ||
mkdir -p $HOME/.gem | ||
touch $HOME/.gem/credentials | ||
chmod 0600 $HOME/.gem/credentials | ||
printf -- "---\n:github: Bearer ${GH_TOKEN}\n" > $HOME/.gem/credentials | ||
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} ${BUILD_PATH}/*.gem | ||
env: | ||
OWNER: ${{ github.repository_owner }} | ||
|
||
- name: Add gem as a release asset | ||
run: gh release upload $CFE_GOTOH_VERSION ${BUILD_PATH}/*.gem | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,37 @@ | ||
name: Automated Tests | ||
|
||
on: ["push"] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code from repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log into GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build devcontainer and run tests | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/cfe-lab/gotoh_devcontainer | ||
cacheFrom: ghcr.io/cfe-lab/gotoh_devcontainer | ||
runCmd: cd /workspaces/gotoh/ruby && rake test | ||
env: | | ||
CI_COMMIT_REF=${{ github.ref_name }} | ||
CI_COMMIT_SHA=${{ github.sha }} | ||
CI_PIPELINE_ID=${{ github.run_id }} | ||
CI_COMMIT_BRANCH=${{ github.ref_name }} | ||
CI_PROJECT=${{ github.repository }} | ||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
root_dir: ${{ github.workspace }} | ||
files: ${{ github.workspace }}/ruby/coverage/coverage.xml |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
env/ | ||
__pycache__/ | ||
.pytest_cache/ | ||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Makefile | ||
*.so | ||
*.o | ||
extconf.h | ||
build/* |
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
*.gem | ||
coverage/* | ||
.DS_Store |
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,9 @@ | ||
source 'https://rubygems.org' | ||
ruby '2.2.2' | ||
|
||
# To install all these gems, run "gem install bundler", then "bundle install". | ||
|
||
gem 'minitest', '5.15.0' | ||
gem 'minitest-reporters', '1.7.1' | ||
gem 'simplecov', '0.17.1' | ||
gem 'simplecov-cobertura', '1.4.2' |
Oops, something went wrong.