Skip to content

Commit

Permalink
Migrate CI to Github Actions (#892)
Browse files Browse the repository at this point in the history
So long, Travis - and thanks for all the fish!
  • Loading branch information
matiasgarciaisaia committed Oct 13, 2021
1 parent bd6c3ed commit c890025
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 40 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Set environment up
run: |
docker-compose pull
docker-compose build
docker-compose run --rm broker sh -c './rebar get-deps'
docker-compose run --rm broker sh -c './rebar compile'
docker-compose run --rm web bundle install
docker-compose run --rm web rake db:setup
docker-compose run --rm web rake db:test:prepare
- name: Run specs
run: |
docker-compose run --rm web rspec
docker-compose run --rm broker make eunit
build:
needs: test
runs-on: ubuntu-20.04
env:
DOCKER_REPOSITORY: 'instedd/verboice'
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
steps:
- uses: actions/checkout@v2
- name: Build image & push to Docker Hub
run: ./build.sh
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Welcome to Verboice [![Build Status](https://travis-ci.org/instedd/verboice.svg?branch=master)](https://travis-ci.org/instedd/verboice)
Welcome to Verboice [![Build Status](https://github.com/instedd/verboice/actions/workflows/ci.yml/badge.svg)](https://github.com/instedd/verboice/actions/workflows/ci.yml)
=================

Voice is the most universal and inclusive means of communication, and it's an ideal way to expand the reach and impact of health and humanitarian technologies. Verboice is a free and open-source tool that makes it easy for anyone to create and run projects that interact via voice, allowing your users to listen and record messages in their own language and dialect or answer questions with a phone keypad. Verboice projects can start small and scale up, making it possible to improve lives even in communities previously closed off by literacy and technological barriers.
Expand Down
2 changes: 1 addition & 1 deletion travis-build.sh → build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -eo pipefail

source <(curl -s https://raw.githubusercontent.com/manastech/ci-docker-builder/e556ffa1319a966df778d3559a4b29505ca8dceb/travis-build.sh)
source <(curl -s https://raw.githubusercontent.com/manastech/ci-docker-builder/a2d44f8b7f155afe5a9652252cfb262871846a41/build.sh)

dockerSetup
echo $VERSION > VERSION
Expand Down

0 comments on commit c890025

Please sign in to comment.