/wm-go

This is a mirror of Causemos' data fetching service

Primary LanguageGoApache License 2.0Apache-2.0

WM Go API

pipeline status coverage report

Requirements

  • Go v1.12 or higher. Make sure your $GOPATH is defined and that $GOPATH/bin is in your path.
  • Ensure you have Go Lint installed; eg: go get -u golang.org/x/lint/golint

Instructions

Clone the repository and install the dependencies.

git clone git@gitlab.uncharted.software:WM/wm-go.git
cd wm-go
make install

Copy sample.env as wm.env and adjust the environment variables as needed.

Run the server:

make run

Note on CI/CD Workflows

  • Linting and test runs when there's a merge requests or push to master.
  • Docker image with latest tag will be created and pushed to the registry when changes are committed to master.
  • Docker image with a tag (eg. 0.1.1) will be created (and pushed to the registry) and will be deployed to openstack instance when a commit is tagged.