Skip to content

Commit

Permalink
Fix deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay committed Jun 25, 2020
1 parent 1c90502 commit 222710c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ deploy:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
provider: releases
skip_cleanup: true

cache: cargo
before_cache:
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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`
Expand Down
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -ex

main() {
local src=$(pwd) \
features="--features reqwest/native-tls-vendored" \
stage=

case $TRAVIS_OS_NAME in
Expand All @@ -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/

Expand Down
1 change: 1 addition & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 222710c

Please sign in to comment.