Skip to content

Commit ee4550f

Browse files
committed
add CI and update README with CI, codecov, license
1 parent 477b6ed commit ee4550f

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.travis.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: rust
2+
3+
sudo: required
4+
5+
rust:
6+
- stable
7+
- beta
8+
- nightly
9+
10+
matrix:
11+
allow_failures:
12+
- rust: nightly
13+
14+
cache: cargo
15+
16+
before_install:
17+
- sudo apt-get update
18+
19+
addons:
20+
apt:
21+
packages:
22+
- libcurl4-openssl-dev
23+
- libelf-dev
24+
- libdw-dev
25+
- cmake
26+
- gcc
27+
- binutils-dev
28+
29+
before_script: |
30+
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
31+
cargo install cargo-tarpaulin
32+
fi
33+
34+
after_success: |
35+
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
36+
cargo tarpaulin --out Xml --lib -v
37+
bash <(curl -s https://codecov.io/bash) &&
38+
echo "Uploaded code coverage"
39+
fi

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
# regexpp-rs
2-
Rust port of regexpp (ECMAScript regular expression parser)
1+
# `regexpp-rs`
2+
3+
[![Build Status](https://img.shields.io/travis/qkniep/regexpp-rs?logo=travis)](https://travis-ci.org/qkniep/regexpp-rs)
4+
[![codecov](https://codecov.io/gh/qkniep/regexpp-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/qkniep/regexpp-rs)
5+
![LoC](https://tokei.rs/b1/github/qkniep/regexpp-rs?category=code)
6+
![License](https://img.shields.io/github/license/qkniep/regexpp-rs)
7+
8+
Rust port of regexpp (ECMAScript regular expression parser).
9+
This crate is being developed mainly as an efficient validator of ECMAScript regular expressions for
10+
the [`deno_lint` project](https://github.com/denoland/deno_lint).

0 commit comments

Comments
 (0)