-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #148. Had to rebase w/ changes (minor).
- Loading branch information
Showing
357 changed files
with
21,823 additions
and
40,978 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,113 @@ | ||
on: | ||
push: | ||
branches: '*' | ||
|
||
jobs: | ||
base: | ||
name: CPD ${{ matrix.platform }} w/ FGT ${{ matrix.fgt }} | ||
runs-on: ${{ matrix.platform }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
platform: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
fgt: ['ON', 'OFF'] | ||
|
||
env: | ||
PLATFORM: ${{ matrix.platform }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
channels: conda-forge | ||
auto-update-conda: true | ||
|
||
- uses: ilammy/msvc-dev-cmd@v1 | ||
if: matrix.platform == 'windows-latest' | ||
|
||
- name: Setup | ||
shell: bash -l {0} | ||
run: | | ||
conda update -n base -c defaults conda -y | ||
conda install ninja cmake ninja eigen compilers jsoncpp -y | ||
- name: JSONCPP | ||
shell: bash -l {0} | ||
run: | | ||
git clone https://github.com/open-source-parsers/jsoncpp.git | ||
cd jsoncpp | ||
git checkout 1.9.3 | ||
mkdir build | ||
cd build | ||
if [ "$PLATFORM" == "windows-latest" ]; then | ||
export CC=cl.exe | ||
export CXX=cl.exe | ||
fi | ||
cmake .. \ | ||
-G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \ | ||
-DJSONCPP_WITH_TESTS=OFF \ | ||
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release | ||
ninja install | ||
- name: FGT | ||
shell: bash -l {0} | ||
if: matrix.fgt == 'ON' | ||
run: | | ||
git clone https://github.com/gadomski/fgt.git | ||
mkdir fgt/build | ||
cd fgt/build | ||
if [ "$PLATFORM" == "windows-latest" ]; then | ||
export CC=cl.exe | ||
export CXX=cl.exe | ||
fi | ||
cmake .. \ | ||
-G Ninja \ | ||
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ | ||
-DWITH_TESTS=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS=OFF | ||
ninja | ||
ninja install | ||
- name: Configure | ||
shell: bash -l {0} | ||
run: | | ||
mkdir build; cd build; | ||
if [ "$PLATFORM" == "windows-latest" ]; then | ||
export CC=cl.exe | ||
export CXX=cl.exe | ||
fi | ||
cmake .. \ | ||
-G Ninja \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX \ | ||
-DWITH_DOCS=OFF \ | ||
-DWITH_FGT=${{ matrix.fgt }} \ | ||
-DWITH_JSONCPP=OFF \ | ||
-DWITH_STRICT_WARNINGS=ON \ | ||
-DWITH_TESTS=ON | ||
- name: Build | ||
shell: bash -l {0} | ||
working-directory: ./build | ||
run: | | ||
ninja | ||
- name: Paths | ||
shell: bash -l {0} | ||
if: matrix.platform == 'windows-latest' | ||
run: | | ||
echo "::add-path::D:/a/cpd/cpd/build/bin" | ||
echo "::add-path::D:/a/cpd/cpd/build/components/jsoncpp" | ||
- name: Test | ||
shell: bash -l {0} | ||
working-directory: ./build | ||
run: | | ||
ctest | ||
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
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,4 @@ | ||
# Run manually to reformat a file: | ||
# clang-format -i --style=file <file> | ||
Language: Cpp | ||
BasedOnStyle: Google |
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 |
---|---|---|
|
@@ -3,56 3,41 @@ | |
# This file can be validated on: | ||
# http://lint.travis-ci.org/ | ||
|
||
sudo: false | ||
language: cpp | ||
|
||
# Define the matrix explicitly, manually expanding the combinations of (os, compiler, env). | ||
# It is more tedious, but grants us far more flexibility. | ||
matrix: | ||
include: | ||
- os: linux | ||
before_install: chmod -R x ./ci/*platformio.sh | ||
install: ./ci/install-platformio.sh | ||
script: ./ci/build-platformio.sh | ||
- os: linux | ||
dist: xenial | ||
compiler: gcc | ||
sudo : true | ||
install: ./ci/install-linux.sh && ./ci/log-config.sh | ||
script: ./ci/build-linux-bazel.sh | ||
- os: linux | ||
dist: xenial | ||
compiler: clang | ||
sudo : true | ||
install: ./ci/install-linux.sh && ./ci/log-config.sh | ||
script: ./ci/build-linux-bazel.sh | ||
- os: linux | ||
group: deprecated-2017Q4 | ||
compiler: gcc | ||
install: ./ci/install-linux.sh && ./ci/log-config.sh | ||
script: ./ci/build-linux-autotools.sh | ||
- os: linux | ||
group: deprecated-2017Q4 | ||
compiler: gcc | ||
env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c 11 | ||
- os: linux | ||
group: deprecated-2017Q4 | ||
compiler: clang | ||
env: BUILD_TYPE=Debug VERBOSE=1 | ||
- os: linux | ||
group: deprecated-2017Q4 | ||
compiler: clang | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 -Wgnu-zero-variadic-macro-arguments | ||
- os: linux | ||
compiler: clang | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 NO_EXCEPTION=ON NO_RTTI=ON COMPILER_IS_GNUCXX=ON | ||
- os: osx | ||
compiler: gcc | ||
env: BUILD_TYPE=Debug VERBOSE=1 | ||
- os: osx | ||
compiler: gcc | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 HOMEBREW_LOGS=~/homebrew-logs HOMEBREW_TEMP=~/homebrew-temp | ||
- os: osx | ||
compiler: clang | ||
env: BUILD_TYPE=Debug VERBOSE=1 | ||
if: type != pull_request | ||
- os: osx | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 | ||
if: type != pull_request | ||
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c 11 HOMEBREW_LOGS=~/homebrew-logs HOMEBREW_TEMP=~/homebrew-temp | ||
|
||
# These are the install and build (script) phases for the most common entries in the matrix. They could be included | ||
# in each entry in the matrix, but that is just repetitive. | ||
|
@@ -63,7 48,7 @@ install: | |
|
||
script: ./ci/travis.sh | ||
|
||
# For sudo=false builds this section installs the necessary dependencies. | ||
# This section installs the necessary dependencies. | ||
addons: | ||
apt: | ||
# List of whitelisted in travis packages for ubuntu-precise can be found here: | ||
|
@@ -76,6 61,13 @@ addons: | |
packages: | ||
- g -4.9 | ||
- clang-3.9 | ||
update: true | ||
homebrew: | ||
packages: | ||
- ccache | ||
- [email protected] | ||
- llvm@4 | ||
update: true | ||
|
||
notifications: | ||
email: false |
Oops, something went wrong.