Skip to content

Commit

Permalink
test: Use Github Actions instead of travis.ci
Browse files Browse the repository at this point in the history
It's easy to use Github Actions to test on multiple OSs and multiple
versions of Qt, so use it instead of travis.ci.

SingleApplication submodule URL is also modified in this commit, please
change it back after itay-grudev/SingleApplication#90 is merged.
  • Loading branch information
ouuan committed Jan 31, 2020
1 parent 03b632e commit df1463f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 22 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "CI: Build Test"

on: [push, pull_request]

jobs:
build:

strategy:
matrix:
qt_version: [5.12.0, 5.12.6, 5.14.0]
platform: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2

- name: Install Qt
uses: jurplel/[email protected]
with:
version: ${{ matrix.qt_version }}

- name: get submodules
run: git submodule update --init --recursive

- name: cmake
run: cmake .

- name: cmake build
run: cmake --build .
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = https://github.com/ouuan/QCodeEditor.git
[submodule "third_party/singleapplication"]
path = third_party/singleapplication
url = https://github.com/itay-grudev/SingleApplication.git
url = https://github.com/ouuan/SingleApplication.git
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CP Editor

[![Build Status](https://travis-ci.org/ouuan/cp-editor.svg?branch=master)](https://travis-ci.org/ouuan/cp-editor)
[![CI: Build Test](https://github.com/ouuan/cp-editor/workflows/CI:%20Build%20Test/badge.svg)](https://github.com/ouuan/cp-editor/actions)
[![Latest Stable](https://img.shields.io/github/v/release/coder3101/cp-editor?label=latest%20stable)](https://github.com/coder3101/cp-editor/releases/latest)
[![Latest Release](https://img.shields.io/github/v/release/coder3101/cp-editor?include_prereleases&label=latest%20release&sort=semver)](https://github.com/coder3101/cp-editor/releases)

Expand Down
2 changes: 1 addition & 1 deletion third_party/singleapplication

0 comments on commit df1463f

Please sign in to comment.