From 11841ff9b3029a871095564eeae01c2996bcadab Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen <1937689+yan12125@users.noreply.github.com> Date: Sun, 5 Feb 2023 18:05:33 +0800 Subject: [PATCH] Drop the use of Travis CI (#240) Now, we migrate to GitHub Actions instead. Close #237 --- .travis.yml | 71 ----------------------------------------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 551e6c5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,71 +0,0 @@ -language: cpp - -os: - - linux - - osx -arch: - - amd64 - - ppc64le - -env: - matrix: - - CTEST_OUTPUT_ON_FAILURE=1 - - CTEST_OUTPUT_ON_FAILURE=1 CFLAGS='-fsanitize=address' - - CTEST_OUTPUT_ON_FAILURE=1 OPTION='-DCMAKE_CXX_FLAGS=-O0 -DENABLE_GCOV=yes' COVERALLS=yes - -matrix: - exclude: - - os: osx - env: CTEST_OUTPUT_ON_FAILURE=1 CFLAGS='-fsanitize=address' - - os: osx - env: CTEST_OUTPUT_ON_FAILURE=1 OPTION='-DCMAKE_CXX_FLAGS=-O0 -DENABLE_GCOV=yes' COVERALLS=yes - -git: - depth: 1 - -# opt-in Ubuntu Trusty -sudo: required -dist: trusty -cache: ccache - -install: - - | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then - pip install --user cpp-coveralls - sudo add-apt-repository --yes ppa:chewing/chewing - sudo apt-get update - sudo apt-get install --yes cmake help2man qt5-default qttools5-dev qttools5-dev-tools libchewing3-dev - gcc --version - g++ --version - gcov --version - fi - - | - if [ "$TRAVIS_OS_NAME" = "osx" ]; then - export CC=gcc-4.8 CXX=g++-4.8 - - # dependencies - brew update > /dev/null && brew install ccache libchewing cmake qt5 gcc@4.8 - - # ccache - export PATH="/usr/local/opt/ccache/libexec:$PATH" - - # Qt - brew link --force qt5 - brew linkapps qt5 - export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev) - ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs && ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins - fi - - ccache -V && ccache --show-stats && ccache --zero-stats && export use_ccache=true - -script: - - cd "$TRAVIS_BUILD_DIR" - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export CMAKE_PREFIX_PATH=$(brew --prefix qt5)/lib/cmake; fi - - cmake $OPTION . - - make -j2 - - make -j2 check - -after_success: - - if [ x$COVERALLS == xyes ]; then coveralls --exclude gmock --exclude test --exclude-pattern '.*CMake[^/]+\.c(?:pp)?' --exclude-pattern '.*_automoc.cpp'; fi - -after_script: - - if [ "$use_ccache" = true ]; then ccache --show-stats ; fi diff --git a/README.md b/README.md index b530d09..baab22d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Chewing Editor -[![TravisCI Status](https://travis-ci.org/chewing/chewing-editor.svg?branch=master)](https://travis-ci.org/chewing/chewing-editor) +[![GitHub Actions Status](https://github.com/chewing/chewing-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/chewing/chewing-editor/actions) [![Coveralls Status](https://img.shields.io/coveralls/chewing/chewing-editor.svg)](https://coveralls.io/github/chewing/chewing-editor) chewing-editor is a cross platform chewing user phrase editor. It provides a