Skip to content

Commit 531a999

Browse files
committed
Merge branch 'release/0.3.0'
2 parents 0ced918 + 210c341 commit 531a999

25 files changed

+335
-254
lines changed

.travis.yml

+12-14
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ env:
1212

1313
matrix:
1414
include:
15+
# OSX
16+
# HACK: open-source jobs on OSX take VERY long time just to start, so just
17+
# get up earlier like when you're attending a live or so
18+
- env: TARGET=i686-apple-darwin
19+
os: osx
20+
- env: TARGET=x86_64-apple-darwin
21+
os: osx
22+
1523
# Android
1624
- env: TARGET=aarch64-linux-android DISABLE_TESTS=1
1725
- env: TARGET=arm-linux-androideabi DISABLE_TESTS=1
@@ -36,19 +44,15 @@ matrix:
3644
- env: TARGET=x86_64-unknown-linux-gnu
3745
- env: TARGET=x86_64-unknown-linux-musl
3846

39-
# OSX
40-
- env: TARGET=i686-apple-darwin
41-
os: osx
42-
- env: TARGET=x86_64-apple-darwin
43-
os: osx
44-
4547
# *BSD
4648
- env: TARGET=i686-unknown-freebsd DISABLE_TESTS=1
4749
- env: TARGET=x86_64-unknown-freebsd DISABLE_TESTS=1
4850
- env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1
4951

50-
# Windows
51-
- env: TARGET=x86_64-pc-windows-gnu
52+
# netbsd currently doesn't build (because of nix-0.9.0)
53+
env: # important: https://docs.travis-ci.com/user/customizing-the-build/#rows-that-are-allowed-to-fail
54+
allow_failures:
55+
- env: TARGET=x86_64-unknown-netbsd DISABLE_TESTS=1
5256

5357
before_install:
5458
- set -e
@@ -83,12 +87,6 @@ before_cache:
8387
# Travis can't cache files that are not readable by "others"
8488
- chmod -R a+r $HOME/.cargo
8589

86-
branches:
87-
only:
88-
# release tags
89-
- /^\d+\.\d+\.\d+.*$/
90-
- master
91-
9290
notifications:
9391
email:
9492
on_success: never

Cargo.lock

+10-47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
[package]
22
name = "autojump"
3-
version = "0.2.2"
3+
version = "0.3.0"
44
authors = ["Wang Xuerui <git@xen0n.name>"]
55
description = "A Rust port and drop-in replacement of autojump"
66
repository = "https://github.com/xen0n/autojump-rs"
77
readme = "README.md"
88
license = "GPL-3.0+"
9-
include = ["src/**/*.rs", "Cargo.toml", "build.rs"]
10-
build = "build.rs"
9+
include = ["src/**/*.rs", "Cargo.toml"]
10+
11+
12+
[features]
13+
default = []
14+
nightly = []
1115

1216

1317
[dependencies]
14-
atomicwrites = "0.1.3"
18+
# atomicwrites = "0.1.3"
19+
atomicwrites = { git = "https://github.com/xen0n/rust-atomicwrites", branch = "feature/update-nix" }
1520
docopt = "0.8.1"
1621
regex = "0.2"
1722
serde = "1.0.19"
1823
serde_derive = "1.0.19"
1924
strsim = "0.6"
20-
21-
22-
[build-dependencies]
23-
walkdir = "2.0.1"

README.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
# autojump-rs [![Crates.io version](https://img.shields.io/crates/v/autojump.svg)][cratesio] [![Crates.io downloads](https://img.shields.io/crates/dv/autojump.svg)][cratesio] [![Crates.io license](https://img.shields.io/crates/l/autojump.svg)](LICENSE)
1+
# autojump-rs [![Crates.io version](https://img.shields.io/crates/v/autojump.svg)][cratesio] [![Crates.io downloads](https://img.shields.io/crates/dv/autojump.svg)][cratesio] [![Crates.io license](https://img.shields.io/crates/l/autojump.svg)](LICENSE) [![Travis build status](https://img.shields.io/travis/xen0n/autojump-rs/develop.svg?label=travis)][travis] [![AppVeyor build status](https://img.shields.io/appveyor/ci/xen0n/autojump-rs/develop.svg?logo=appveyor)][appveyor]
22

33
A port of the wildly popular helper application [`autojump`][aj] to Rust.
44

55
[aj]: https://github.com/wting/autojump
66
[cratesio]: https://crates.io/crates/autojump
7+
[travis]: https://travis-ci.org/xen0n/autojump-rs
8+
[appveyor]: https://ci.appveyor.com/project/xen0n/autojump-rs
79

810

911
## License
@@ -122,11 +124,14 @@ implementation. These are:
122124
distance][jaro] is computed between every filename and the last part of
123125
query needles respectively, and results are filtered based on that.
124126

125-
* `jc` doesn't work correctly at the moment.
127+
* `jc` may jump outside current directory.
126128

127129
Exact reason may be different filtering logic involved, but I'm not very
128-
sure about this one. I only use plain `j` mostly, so if you're heavily
129-
reliant on `jc` and its friends please open an issue!
130+
sure about this one. The behavior is also observed on original `autojump`,
131+
but the frequency seems to be lower, and both implementations actually
132+
don't check if the target is below current directory. However I only use
133+
plain `j` mostly, so if you're heavily reliant on `jc` and its friends
134+
please open an issue!
130135

131136

132137
[rust-argparse]: https://github.com/tailhook/rust-argparse
@@ -139,9 +144,9 @@ implementation. These are:
139144
## Future plans
140145

141146
Now that platform support is mostly considered okay, next steps would be
142-
more refactoring and bug fixing. I once considered Git commit ids in
143-
release artifact "cool", but I no longer want that now, so that would be
144-
gone in the next release. And the `jc` bug should also be tackled.
147+
more refactoring and bug fixing. The `jc` behavior differences are observed
148+
on original `autojump` too, in that you could jump outside `$(pwd)`, but the
149+
actual directory jumped to is different; this needs further investigation.
145150
Hell I even want to write a `fasd` backend too, but I don't presently have
146151
*that* much free time. Anyway, contributions and bug reports are welcome!
147152

appveyor.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ install:
2626
test_script:
2727
# we don't run the "test phase" when doing deploys
2828
- if [%APPVEYOR_REPO_TAG%]==[false] (
29-
cargo build --target %TARGET% &&
30-
cargo build --target %TARGET% --release &&
31-
cargo test --target %TARGET% &&
32-
cargo test --target %TARGET% --release
29+
cargo build --features nightly --target %TARGET% &&
30+
cargo test --target %TARGET%
3331
)
3432

3533
before_deploy:
36-
- cargo rustc --target %TARGET% --release --bin autojump -- -C lto
34+
- cargo rustc --features nightly --target %TARGET% --release --bin autojump -- -C lto
3735
- ps: ci\before_deploy.ps1
3836

3937
deploy:
@@ -50,12 +48,6 @@ cache:
5048
- C:\Users\appveyor\.cargo\registry
5149
- target
5250

53-
branches:
54-
only:
55-
# Release tags
56-
- /^\d+\.\d+\.\d+.*$/
57-
- master
58-
5951
notifications:
6052
- provider: Email
6153
on_build_success: false

build.rs

-61
This file was deleted.

ci/before_deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ main() {
1717

1818
test -f Cargo.lock || cargo generate-lockfile
1919

20-
cross rustc --bin autojump --target $TARGET --release -- -C lto
20+
cross rustc --features nightly --bin autojump --target $TARGET --release -- -C lto
2121

2222
cp target/$TARGET/release/autojump $stage/
2323

ci/script.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
set -ex
44

55
main() {
6-
cross build --target $TARGET
7-
cross build --target $TARGET --release
6+
cross build --features nightly --target $TARGET
87

98
if [ ! -z $DISABLE_TESTS ]; then
109
return
1110
fi
1211

13-
cross test --target $TARGET
14-
cross test --target $TARGET --release
12+
cross test --features nightly --target $TARGET
1513
}
1614

1715
# we don't run the "test phase" when doing deploys

0 commit comments

Comments
 (0)