diff --git a/.travis.yml b/.travis.yml
index 1663ca5b9f..c3d5321e0c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,32 +1,12 @@
+dist: trusty
+sudo: false
language: rust
rust:
- 1.12.0
- stable
- beta
- nightly
-sudo: false
-script:
- - cargo build --verbose
- - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
- cargo build --verbose --manifest-path=regex-debug/Cargo.toml;
- RUSTFLAGS="-C target-feature=+ssse3" cargo test --verbose --features 'simd-accel pattern' --jobs 2;
- else
- travis_wait cargo test --verbose --jobs 2;
- fi
- - ./run-shootout-test
- - cargo doc --verbose
- - cargo test --verbose --manifest-path=regex-syntax/Cargo.toml
- - cargo doc --verbose --manifest-path=regex-syntax/Cargo.toml
- - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
- (cd regex-capi && cargo build --verbose);
- (cd regex-capi/ctest && ./compile && LD_LIBRARY_PATH=../target/debug ./test);
- (cd regex-capi/examples && ./compile && LD_LIBRARY_PATH=../target/release ./iter);
- (cd bench && travis_wait ./run rust);
- (cd bench && travis_wait ./run rust-bytes --no-run);
- (cd bench && travis_wait ./run pcre1 --no-run);
- (cd bench && travis_wait ./run onig --no-run);
- travis_wait cargo test --verbose --manifest-path=regex_macros/Cargo.toml;
- fi
+script: ci/script.sh
addons:
apt:
packages:
@@ -34,20 +14,15 @@ addons:
- libelf-dev
- libdw-dev
- binutils-dev
-after_success: |
- [ $TRAVIS_BRANCH = master ] &&
- [ $TRAVIS_PULL_REQUEST = false ] &&
- [ $TRAVIS_RUST_VERSION = nightly ] &&
- echo '' > target/doc/index.html &&
- pip install ghp-import --user $USER &&
- $HOME/.local/bin/ghp-import -n target/doc &&
- git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages &&
- wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
- tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
- PATH="./kcov-master/tmp/usr/local/bin:$PATH" ./run-kcov --coveralls-id $TRAVIS_JOB_ID
+ - wget
+ - clang-3.6
+ - cmake
+ - python
+ - python-virtualenv
+after_success: ci/after_success.sh
env:
global:
- secure: "ii5NwZiArNTxFuVnjXDHrYutkp82116hqBbzsCv/v53O5gCn1GKbCRyusFYHjr+ytymEPKH171cAQ7doGt3QPyFs2jdzK6+xz4obwCBfAPwgbtuFu9P/lIasG1ja2i/2T61g12DSlzAVTCkLnHNTLad4FWsyDyqJLpY4I4JFvcE="
+ secure: "GdGE0kFYiJGccVZligur7JlWRCy49eH6uWPl71mrnaaW8jLHmkva0jVb0LB9e5ol3YMaMCgrwM2pcj3Uk2C08YcGIoEKOLlDVho351KaD6XfclZ29CQTAPMz4Xut2IcB4YeuZlDrOnM26guTIOtn2NAjeQgOhpM/ErzVBgkB+wQ="
notifications:
email:
on_success: never
diff --git a/Cargo.toml b/Cargo.toml
index e115931aef..e11a3b4bf3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,7 +30,7 @@ utf8-ranges = "1"
# For examples.
lazy_static = "0.2.2"
# For property based tests.
-quickcheck = "0.4.1"
+quickcheck = { version = "0.4.1", default-features = false }
# For generating random test data.
rand = "0.3.15"
diff --git a/appveyor.yml b/appveyor.yml
index 6a1b8dc19c..0933ad8cc3 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -14,4 +14,4 @@ install:
build: false
test_script:
- - cargo test --verbose
+ - cargo test --verbose --jobs 4
diff --git a/bench/Cargo.toml b/bench/Cargo.toml
index 0bd686762a..8875fed487 100644
--- a/bench/Cargo.toml
+++ b/bench/Cargo.toml
@@ -14,7 +14,7 @@ build = "build.rs"
docopt = "0.6"
lazy_static = "0.1"
libc = "0.2"
-onig = { version = "0.4", optional = true }
+onig = { version = "1.2", optional = true }
libpcre-sys = { version = "0.2", optional = true }
memmap = "0.2"
regex = { version = "0.2.0", path = "..", features = ["simd-accel"] }
diff --git a/bench/src/ffi/re2.h b/bench/src/ffi/re2.h
index 4a8c5c8a7e..377a04d700 100644
--- a/bench/src/ffi/re2.h
+++ b/bench/src/ffi/re2.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-#ifndef RE2_RE2_H
-#define RE2_RE2_H
+#ifndef RE2_RE2_H_
+#define RE2_RE2_H_
// C++ interface to the re2 regular-expression library.
// RE2 supports Perl-style regular expressions (with extensions like
@@ -179,23 +179,25 @@
// RE2::Octal(&a), RE2::Hex(&b), RE2::CRadix(&c), RE2::CRadix(&d));
// will leave 64 in a, b, c, and d.
+#include
#include
+#include
+#include
#include