]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
switch to github actions from travis 391/head
authorChris Porter <redacted>
Mon, 14 Dec 2020 22:57:12 +0000 (22:57 +0000)
committerChris Porter <redacted>
Mon, 14 Dec 2020 23:00:49 +0000 (23:00 +0000)
.github/workflows/main.yml [new file with mode: 0644]
.travis.yml [deleted file]
README.md

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644 (file)
index 0000000..fcf473a
--- /dev/null
@@ -0,0 +1,29 @@
+name: CI
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: [2.7]
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python ${{ matrix.python-version }}
+      uses: actions/setup-python@v2
+      with:
+        python-version: ${{ matrix.python-version }}
+    - name: install dependencies
+      run: python -m pip install --upgrade pip && pip install -r requirements.txt
+    - name: build
+      run: cp config.py.example config.py && ./compile.py
+    - name: run
+      run: ./run.py
+    - name: basic test
+      run: wget http://localhost:9090 -O /dev/null && kill $(cat twistd.pid)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index bef9a1c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-language: python
-python:
-  - "2.7"
-addons:
-  apt:
-    packages:
-      openjdk-8-jre-headless
-script:
-  - cp config.py.example config.py && ./compile.py && ./run.py && wget http://localhost:9090 -O /dev/null && kill $(cat twistd.pid)
index b8e5ecb46c4c6d0e48cef3e02acb4c01c524fee0..d5edc209675fddb6308355235bdab99d93ac92bc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,9 +1,8 @@
 # qwebirc IRC client
 
-[![Build Status](https://travis-ci.org/qwebirc/qwebirc.png?branch=master)](https://travis-ci.org/qwebirc/qwebirc)
+[![Build status](https://github.com/qwebirc/qwebirc/workflows/CI/badge.svg)](https://github.com/quakenet/newserv/actions?query=workflow%3ACI)
 
 ## Installation
-
 Installation instructions are on the website: https://qwebirc.org/installation
 
 ## Hacking on qwebirc