Skip to content

Commit

Permalink
Merge pull request #58 from jburel/actions
Browse files Browse the repository at this point in the history
Actions
  • Loading branch information
sbesson authored Dec 9, 2020
2 parents a62b88d + a28faa3 commit d03e942
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 41 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Builds using docker
---
name: Build

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Add variable
run: |
run: |
echo "COMPOSE_FILE=docker-compose.yml:volumes.yml" >> $GITHUB_PATH
- name: Set up
run: |
mkdir /tmp/omero-app
cp -r . /tmp/omero-app/.omero
- name: Build
run: |
cd /tmp/omero-app
.omero/compose up -d
.omero/compose down
.omero/persist.sh backup
.omero/persist.sh --restore backup
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
OMERO Test Infra
================

[![Actions Status](https://github.com/ome/omero-test-infra/workflows/Build/badge.svg)](https://github.com/ome/omero-test-infra/actions)

`omero-test-infra` provides simplified integration testing
for projects that are built on OMERO.server or OMERO.web.

Any repository that relies on an existing OMERO installation
can depend on this directory whether for testing in travis
can depend on this directory whether for testing in CI system
or locally.

The are a number of [examples](#examples) which are run
regularly by Travis CI.
regularly by CI.

Setup
-----

The directory MUST BE located at .omero at the top-level of
The directory MUST BE located at `.omero` at the top-level of
your source code. This can be achieved most simply by:

```
Expand All @@ -33,9 +35,9 @@ production docker images. The definition of the stack is available
in `docker-compose.yml` with a number of environment variables
being specified in `.env`.

All docker compose environment variables like COMPOSE_FILE will be
respected, except for COMPOSE_PROJECT_NAME which has special handling
via the PROJECT environment variable.
All docker compose environment variables like `COMPOSE_FILE` will be
respected, except for `COMPOSE_PROJECT_NAME` which has special handling
via the `PROJECT` environment variable.

Docker commands
---------------
Expand All @@ -56,7 +58,7 @@ It is also possible to combine several application e.g.
but each of the applications must pass when it is run alone as well.

These commands should be invoked by the `script` step in the project's
.travis.yml file. Set any environment variables as necessary.
`omero_plugin.yml` file. Set any environment variables as necessary.

Extension mechanisms
--------------------
Expand Down Expand Up @@ -154,9 +156,7 @@ Run the linter, install, run tests
.omero/docker dev run --user cli build
```
Remember, you may need to set some environment variables to ensure your plugin
is discovered and tested correctly.

If you are modifying an existing plugin see `.travis.yml` for the required variables.
is discovered and tested correctly. See `docker`.

Trouble-shooting
----------------
Expand Down Expand Up @@ -198,5 +198,5 @@ Examples
- https://github.com/ome/scripts

You can find more examples by searching for
"[openmicroscopy/omero-test-infra filename:.travis.yml](https://github.com/search?q=openmicroscopy%2Fomero-test-infra+filename%3A.travis.yml&type=Code)"
"[ome/omero-test-infra filename:omero_plugin.yml](https://github.com/search?q=ome%2Fomero-test-infra+filename%3Aomero_plugin.yml&type=Code)"
on GitHub.com.

0 comments on commit d03e942

Please sign in to comment.