This repository was archived by the owner on Mar 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Lodder <[email protected]>
- Loading branch information
1 parent
ee924f8
commit b1899d6
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
language: rust | ||
cache: | ||
directories: | ||
- $HOME/.cargo | ||
- $HOME/libsodium | ||
|
||
branches: | ||
only: | ||
- master | ||
- travis-ci | ||
|
||
rust: | ||
- 1.34.1 | ||
- stable | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: xenial | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libssl1.0.0 | ||
- libssl-dev | ||
|
||
before_install: | ||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi | ||
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew link --force openssl ; fi | ||
- curl -fsSL https://download.libsodium.org/libsodium/releases/libsodium-1.0.16.tar.gz | tar xz | ||
- cd libsodium-1.0.16 | ||
- ./autogen.sh | ||
- ./configure --prefix=$HOME/.libsodium | ||
- make && make install | ||
|
||
env: | ||
- SODIUM_LIB_DIR=$HOME/.libsodium/lib LD_LIBRARY_PATH=$HOME/.libsodium/lib | ||
|
||
install: | ||
- rustup component add rustfmt | ||
- rustup component add clippy | ||
- rustup target add wasm32-unknown-unknown | ||
- command -v cargo-audit >/dev/null 2>&1 || cargo install cargo-audit | ||
|
||
script: | ||
- cargo fmt --all -- --check | ||
- cargo clippy --all | ||
- cargo check | ||
- cd libursa; cargo audit ; cd .. | ||
- cargo build | ||
- cargo build --manifest-path=libursa/Cargo.toml --no-default-features --features=portable | ||
- cargo build --manifest-path=libursa/Cargo.toml --no-default-features --features=wasm --target=wasm32-unknown-unknown | ||
- cargo test | ||
- cargo doc --no-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[workspace] | ||
members = [ | ||
"libursa", | ||
"libzmix" | ||
"libursa" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
reorder_imports = true |