From 222710ce69e762bf49980c3805d2dfe686f793b2 Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Thu, 25 Jun 2020 02:48:22 -0700 Subject: Fix deploy scripts --- .travis.yml | 1 + README.md | 11 ++++++++++- TODO.md | 2 ++ appveyor.yml | 2 +- ci/before_deploy.sh | 3 ++- ci/script.sh | 1 + 6 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3f8dbbd..71109f2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,7 @@ deploy: condition: $TRAVIS_RUST_VERSION = stable tags: true provider: releases + skip_cleanup: true cache: cargo before_cache: diff --git a/README.md b/README.md index 90b6622..a9ebf19 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,8 @@ $ so -e google -s askubuntu -s stackoverflow -s unix how do i install linux ``` ## installation + +### release binaries The quickest installation method is to download the appropriate binary from the [release artifacts](TODO link). Right now I'm only building the most common targets, but in theory it should be easy to add more, so if you @@ -37,13 +39,19 @@ $ curl -LSfs https://samtay.github.io/so/install.sh | \ sh -s -- --git samtay/so ``` -#### cargo +### cargo ``` cargo install so ``` ## documentation +### configuration +**TODO** Document config.yml and explain where to find it. + +### themes +**TODO** Explain colors.toml and explain where to find it. + ### api keys If you want to use your own [StackExchange API Key](https://api.stackexchange.com/docs) you can set it via @@ -85,6 +93,7 @@ Just know that *currently* if you choose this option, and you run the `--lucky` prompt, you won't be able to resize the terminal window while the TUI is open. Available backends: + - `termion-backend` - `ncurses-backend` - `pancurses-backend` diff --git a/TODO.md b/TODO.md index ce81bd3..2dc3a58 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,8 @@ ### chores 1. Make an example GIF +2. [Better](https://gist.github.com/sjparkinson/327dc78c60ab81a06c946630b4288910) + [installation](https://github.com/casey/just) (this is also a good example of github actions). 2. Move to github actions ASAP, travis & appveyor are a PITA. See resources below. 3. Benchmark parsing. Probaly way faster to use regex to find question IDs within URLs (or the entire doc). diff --git a/appveyor.yml b/appveyor.yml index 74c62fc..3ca86e2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -38,7 +38,7 @@ test_script: ) before_deploy: - - cargo rustc --no-default-features --features windows reqwest/native-tls-vendored --target %TARGET% --release --bin %CRATE_NAME% -- -C lto + - cargo rustc --no-default-features --features windows --features reqwest/native-tls-vendored --target %TARGET% --release --bin %CRATE_NAME% -- -C lto - ps: ci\before_deploy.ps1 deploy: diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 7525d8c..db96734 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -4,6 +4,7 @@ set -ex main() { local src=$(pwd) \ + features="--features reqwest/native-tls-vendored" \ stage= case $TRAVIS_OS_NAME in @@ -17,7 +18,7 @@ main() { test -f Cargo.lock || cargo generate-lockfile - cross rustc --bin so --target $TARGET --release -- -C lto + cross rustc $features --bin so --target $TARGET --release -- -C lto cp target/$TARGET/release/so $stage/ diff --git a/ci/script.sh b/ci/script.sh index 6c3703f..85ebfa6 100644 --- a/ci/script.sh +++ b/ci/script.sh @@ -5,6 +5,7 @@ set -ex main() { local features="--features reqwest/native-tls-vendored" if [[ $TARGET =~ .*-freebsd ]]; then + # N.B. still broken features="--features reqwest/rustls-tls" fi -- cgit v1.2.3