mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Merge pull request #429 from renderorange/switch-testing-to-github-actions
Switch testing to GitHub actions
This commit is contained in:
commit
ce826d2d08
21
.github/workflows/test.yml
vendored
Normal file
21
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Run tests
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- 'gh-pages'
|
||||||
|
pull_request:
|
||||||
|
branches-ignore:
|
||||||
|
- 'gh-pages'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install dependencies
|
||||||
|
run: sudo apt-get install shunit2
|
||||||
|
- name: Check out branch
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Create the minecraft user
|
||||||
|
run: sudo adduser --system minecraft
|
||||||
|
- name: Run tests
|
||||||
|
run: sudo /bin/bash ./test.sh
|
23
.travis.yml
23
.travis.yml
@ -1,23 +0,0 @@
|
|||||||
# Use python as its the simplest language which can run a test script
|
|
||||||
language: python
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
# Print out the bash version
|
|
||||||
- sudo /bin/bash --version
|
|
||||||
# Update Package Lists
|
|
||||||
- sudo apt-get -qq update
|
|
||||||
# Install dependencies
|
|
||||||
- sudo apt-get install -y shunit2
|
|
||||||
# Remove this troublesome script
|
|
||||||
- sudo rm -f /etc/profile.d/phpenv.sh
|
|
||||||
|
|
||||||
# Create a minecraft user for testing
|
|
||||||
install:
|
|
||||||
- sudo adduser --system minecraft
|
|
||||||
|
|
||||||
# Run the test script
|
|
||||||
script: sudo /bin/bash ./test.sh
|
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
@ -1,9 +1,4 @@
|
|||||||
# Minecraft Server Manager [![Build Status][status-img]][status] [![Donate to MSM][donate-img]][donate]
|
# Minecraft Server Manager
|
||||||
|
|
||||||
[status-img]: https://api.travis-ci.org/msmhq/msm.svg?branch=master
|
|
||||||
[status]: http://travis-ci.org/msmhq/msm
|
|
||||||
[donate-img]: https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif
|
|
||||||
[donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z7XQDNF7U5GLL
|
|
||||||
|
|
||||||
A single init script which makes running multiple Minecraft/Bukkit servers easier for us admins.
|
A single init script which makes running multiple Minecraft/Bukkit servers easier for us admins.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user