Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Add travis-ci
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Lodder <[email protected]>
  • Loading branch information
mikelodder7 committed May 17, 2019
1 parent ee924f8 commit b1899d6
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 2 deletions.
58 changes: 58 additions & 0 deletions .travis.yml
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
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]
members = [
"libursa",
"libzmix"
"libursa"
]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# HYPERLEDGER URSA

[![Build Status](https://travis-ci.org/mikelodder7/ursa.svg?branch=travis-ci)](https://travis-ci.org/mikelodder7/ursa)

- [Introduction](#introduction)
- [Features](#features)
- [Libursa](#Libursa)
Expand Down
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
reorder_imports = true

0 comments on commit b1899d6

Please sign in to comment.