mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Migrate CI to GitHub Actions
This commit is contained in:
parent
59f243c831
commit
79ac907346
5 changed files with 16 additions and 26 deletions
11
.github/workflows/continuous-integration.yml
vendored
Normal file
11
.github/workflows/continuous-integration.yml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
name: Continuous Integration
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: bash -x script/cibuild
|
21
.travis.yml
21
.travis.yml
|
@ -1,21 +0,0 @@
|
|||
sudo: true
|
||||
services:
|
||||
- docker
|
||||
env:
|
||||
- DOCKER_COMPOSE_VERSION=1.21.0
|
||||
before_install:
|
||||
- sudo rm /usr/local/bin/docker-compose
|
||||
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
||||
- chmod 0755 docker-compose
|
||||
- sudo mv docker-compose /usr/local/bin
|
||||
install: true
|
||||
script: "script/cibuild"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- docker-ce
|
||||
notifications:
|
||||
email: false
|
||||
#irc:
|
||||
#channels: "chat.freenode.net#tracks"
|
||||
#skip_join: true
|
|
@ -6,7 +6,7 @@ RUN touch /etc/app-env
|
|||
|
||||
COPY Gemfile* /app/
|
||||
RUN gem install bundler
|
||||
RUN bundle install
|
||||
RUN bundle install --jobs 4
|
||||
|
||||
RUN mkdir /app/log
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* Contributors: https://github.com/TracksApp/tracks/wiki/Contributors
|
||||
* Version: 2.4.0
|
||||
|
||||
[](https://travis-ci.org/TracksApp/tracks)
|
||||
[](https://github.com/TracksApp/tracks/actions)
|
||||
[](https://codeclimate.com/github/TracksApp/tracks)
|
||||
|
||||
Full instructions for both new installations and upgrades from older installations of Tracks
|
||||
|
|
|
@ -26,8 +26,8 @@ $docker_compose up -d
|
|||
script/poll-for-db
|
||||
|
||||
# Leaving this in since it will be needed for Rails 5
|
||||
bin/rails db:environment:set RAILS_ENV=test || true
|
||||
$docker_compose run web bin/rails db:environment:set RAILS_ENV=test || true
|
||||
|
||||
bin/rake db:reset
|
||||
bin/rake test
|
||||
$docker_compose run web bin/rake db:reset
|
||||
$docker_compose run web bin/rake test
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue