Skip to content

Reconfigure travis to perform parallel builds and linting #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 23, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 17 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,39 @@ sudo: required
matrix:
include:
- os: linux
dist: trusty
compiler: clang
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# newer g++ version (also pulls libstdc++)
- g++-4.9
- libwww-perl
- g++-5
before_install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
env: COMPILER=g++-5
- os: linux
dist: trusty
compiler: gcc
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
# newer g++ version (also pulls libstdc++)
- g++-4.9
- libwww-perl
- clang-3.7
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
- os: osx
compiler: clang
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-3.7 90
env: COMPILER=clang++-3.7
- os: osx
compiler: gcc

addons:
apt:
packages:
- libwww-perl
env: COMPILER=g++
- os: osx
compiler: clang
env: COMPILER=clang++
- env: NAME="CPP-LINT"
script: DIFF=`git diff --name-only master HEAD` && if [ "$DIFF" != "" ]; then python scripts/cpplint.py $DIFF; fi

script:
- make -C src minisat2-download
- make -C src CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare" -j2 && make -C regression test

matrix:
include:
- env: NAME="CPP-LINT"
script: DIFF=`git diff --name-only master HEAD` && if [ "$DIFF" != "" ]; then python scripts/cpplint.py $DIFF; fi
- make -C src CXX=$COMPILER CXXFLAGS="-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare" -j2 && make -C regression test
2 changes: 1 addition & 1 deletion src/solvers/miniBDD/miniBDD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ BDD substitute(const BDD &t, unsigned var, const BDD &tp)
// (!tp & t[var/0])

return ( tp & restrict(t, var, true)) |
(!tp & restrict(t, var, false));
((!tp) & restrict(t, var, false));
}

void cubes(const BDD &u, const std::string &path, std::string &result)
Expand Down