summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Tay <samctay@pm.me>2022-08-21 01:33:34 -0700
committerSam Tay <samctay@pm.me>2022-08-21 01:46:35 -0700
commite4d44be6537299f54abb36a517abb4c2845ff80e (patch)
treecbc63fae60ecf906644b4afff74ba9c4e3704cce
parent8814a90ac85fb007aa394e34ac4290fd3fe1d2e2 (diff)
Create GH ci check
-rw-r--r--.github/workflows/ci.yml41
-rw-r--r--.travis.yml67
-rw-r--r--CHANGELOG.md7
-rw-r--r--README.md7
4 files changed, 51 insertions, 71 deletions
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 @@
<h1 align="center">
<img width="300px" src="assets/logo.png" />
-[![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)
</h1>
-
-[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