Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests! #13

Merged
merged 5 commits into from
Jun 19, 2017
Merged

Integration tests! #13

merged 5 commits into from
Jun 19, 2017

Conversation

amrav
Copy link
Member

@amrav amrav commented Jun 18, 2017

This brings us closer to being able to deploy master automatically with confidence.

This allows us to specify a base (docker-compose.yml), common
configuration for devel (docker-compose.override.yml), and production
specific configuration (docker-compose.prod.yml). When developing, you
can continue to use `docker-compose ...` commands without passing any
special options.

This is nice because:
- We don't need to spin up some services in devel (like backups)
- It will make it possible to reuse the common configuration for
integration tests, which will specify their own overrides to avoid
clashing with any devel volumes.
@amrav amrav force-pushed the amrav/integration-tests branch 6 times, most recently from 1bd18fd to 6899615 Compare June 18, 2017 14:52
- Define integration test config override, which basically renames all
  the volumes to avoid clashing with any existing volumes.
- Add test setup, which starts all the services and installs mediawiki
  using the CLI installer.
- Add an example test, which loads the Main Page. More to come.
- Add integration tests to the Travis CI config.
Copy link
Member

@hargup hargup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a few lines of instructions in the README about how to use the different docker files for the production and debugging purposes. Possibly including links to relevant documentation.

Also, at the moment you are testing if mediawiki is firing up properly, which is great! After the PR is merged please add issues that other more comprehensive tests needs to be added.

- Add info about docker-compose multiple config files
- Add more instructions for running locally

This is not yet in a state where it's easy to run locally. Future
patches will reduce the complexity, but this is the best we can do for
now.
@amrav
Copy link
Member Author

amrav commented Jun 19, 2017

Created #14 to track adding more integration tests. Hopefully the readme is a bit more informative now.

@amrav amrav merged commit 4bfd9bc into master Jun 19, 2017
@amrav amrav deleted the amrav/integration-tests branch June 19, 2017 10:18
amrav pushed a commit that referenced this pull request Sep 12, 2017
Config to set Slack avatar for bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants