From e4d44be6537299f54abb36a517abb4c2845ff80e Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Sun, 21 Aug 2022 01:33:34 -0700 Subject: Create GH ci check --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++++++++ .travis.yml | 67 ------------------------------------------------ CHANGELOG.md | 7 +++++ README.md | 7 +++-- 4 files changed, 51 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9fdc4be --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install minimal stable with clippy and rustfmt + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy + + - uses: Swatinem/rust-cache@v2 + + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all --check + + - name: Build application + uses: actions-rs/cargo@v1 + with: + command: build + + - name: Run clippy linter + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-targets -- --deny warnings + + - name: Run tests + uses: actions-rs/cargo@v1 + with: + command: test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e089e78..0000000 --- a/.travis.yml +++ /dev/null @@ -1,67 +0,0 @@ -# Based on the "trust" template v0.1.2 -# https://github.com/japaric/trust/tree/v0.1.2 - -dist: trusty -language: rust -services: docker - -env: - global: - - CRATE_NAME=so - -jobs: - include: - # Linux - - env: TARGET=x86_64-unknown-linux-musl - - env: TARGET=x86_64-unknown-linux-gnu - - # OSX - - env: TARGET=x86_64-apple-darwin - os: osx - - # TODO figure out how to get tls libraries working on *bsd targets - # BSD - # - env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1 PKG_CONFIG_ALLOW_CROSS=1 - -before_install: - - set -e - - rustup self update - -install: - - sh ci/install.sh - - source ~/.cargo/env || true - -script: - - bash ci/script.sh - -after_script: set +e - -before_deploy: - - sh ci/before_deploy.sh - -deploy: - token: - secure: 1wWcYP/bJ3Poba8Y4D1BFV//8JFSJOL74ah9JP+QbOH7HmXtIX2xjaVUhzhZNU0rQHzibPzlbbe1lyr/SKqbCwzupowxxFlx6MOovQd8su8BWKsONpIaFtIMRDvkRVTIKo1/9Wp7tdjoFBVohY0ERnMuj2oV51tavYyl+hdEViZb6qQyGGuzotK1LzOaQslAqtCIjbs2mVXGkSURDuikYVJld8wyaO02zIeALDEs+czbQI0AUQ1l+dsy2vk+/pds2w5cgLGe7jtbFWLTgZU5eChV/3ArWSgeDxlZiNCDdUXfJ35TSLtrLzEexqVZNz3njlSfdOc5kueYGG1PhetNUJ+8WWDtoes3GnSYyh/lNv4UOjH34OZBrfazWllGHdDEE9yl/0Hu/QJ8uDUtDyImtfRCmJNRNZO7VkBturl/D8z6/Mq3mMF/fWkWfHlA4bDRtIA20ZYCzilmAT4DuMl8QQ89M6B65uJkBHN1EbnXMQTB/tzuvDRFbaRzCZ1WMudGoT9PyhgRcTzJEhGzfoEMRlUIbAffihnkiPyT7VRYcL2zSefnw2pvrnuZmykrkHF8/oyUPHvgYp1s/GMhBZexfrJ2moOWoxObYscoeI0gphLdycwHv5tJXR4U7eIoTD4SUYjNfwJf84G7rFbM62WfXUxO+gvJzQsHr3XxSZVoZ1c= - file_glob: true - file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.* - on: - condition: $TRAVIS_RUST_VERSION = stable - tags: true - provider: releases - skip_cleanup: true - -cache: cargo -before_cache: - # Travis can't cache files that are not readable by "others" - - chmod -R a+r $HOME/.cargo - -branches: - only: - # release tags - - /^v\d+\.\d+\.\d+.*$/ - - main - - develop - -notifications: - email: - on_success: never diff --git a/CHANGELOG.md b/CHANGELOG.md index 56626d9..c16b28d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### [Unreleased] +#### Added +- Keybinding: Press `y` to yank to system clipboard +- New config field for specifying command to copy to system clipboard + +#### Changed +- Switch linux/mac builds from Travis to GitHub Actions. + ### [v0.4.6](https://github.com/samtay/so/compare/v0.4.5...v0.4.6) #### Changed diff --git a/README.md b/README.md index 95a7535..f8d2981 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@

-[![travis][s0]][l0] [![appveyor][s1]][l1] [![crates][s2]][l2] [![MIT][s3]][l3] [![Packaging status](https://repology.org/badge/tiny-repos/so.svg)](https://repology.org/project/so/versions) +[![CI][s0]][l0] [![appveyor][s1]][l1] [![crates][s2]][l2] [![MIT][s3]][l3] [![Packaging status](https://repology.org/badge/tiny-repos/so.svg)](https://repology.org/project/so/versions)

- -[s0]: https://travis-ci.org/samtay/so.svg?branch=master -[l0]: https://travis-ci.org/samtay/so +[s0]: https://github.com/samtay/so/actions/workflows/ci.yml/badge.svg +[l0]: https://github.com/samtay/so/actions/workflows/ci.yml [s1]: https://ci.appveyor.com/api/projects/status/pu7e63f2sqq6x1iq/branch/master?svg=true [l1]: https://ci.appveyor.com/project/samtay/so/branch/master [s2]: https://img.shields.io/crates/v/so.svg -- cgit v1.2.3