Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c34de0
commit 9cb0478
Showing
8 changed files
with
116 additions
and
42 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,48 @@ | ||
version: 2 | ||
jobs: | ||
build-release: | ||
docker: | ||
- image: lelandjansen/speed-of-sound-toolchain:0.0.2 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Git submodules | ||
command: git submodule update --init --recursive | ||
- run: | ||
name: Build (release) | ||
command: | | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
. | ||
cmake --build . -- -j2 | ||
build-debug-and-test: | ||
docker: | ||
- image: lelandjansen/speed-of-sound-toolchain:0.0.2 | ||
environment: | ||
COVERALLS_REPO_TOKEN: Ny1fDedTzf5EuoygukebX5x28beAqhHD9 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Git submodules | ||
command: git submodule update --init --recursive | ||
- run: | ||
name: Build (debug) | ||
command: | | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=DEBUG \ | ||
. | ||
cmake --build . -- -j2 | ||
- run: | ||
name: Run unit tests | ||
command: ./unit_tests | ||
- run: | ||
name: Coveralls | ||
when: on_success | ||
command: coveralls --include src | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build-release | ||
- build-debug-and-test | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build*/ | ||
.idea*/ | ||
*.swp | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Leland Jansen | ||
Leland Jansen (lelandjansen) | ||
|
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,43 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN apt-get update | ||
|
||
# CircleCI requirements | ||
RUN apt-get install -y \ | ||
git \ | ||
ssh \ | ||
tar \ | ||
gzip \ | ||
ca-certificates | ||
|
||
# Our general requirements | ||
RUN apt-get install -y \ | ||
build-essential \ | ||
software-properties-common | ||
|
||
# LLVM | ||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - | ||
# Fingerprint: 6084 F3CF 814B 57C1 CF12 EFD5 15CF 4D18 AF4F 7421 | ||
RUN apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main" | ||
RUN apt-get update && apt-get install -y \ | ||
clang-5.0 \ | ||
lldb-5.0 \ | ||
lld-5.0 \ | ||
clang-tidy-5.0 \ | ||
clang-format-5.0 | ||
|
||
# CMake | ||
RUN wget https://cmake.org/files/v3.9/cmake-3.9.4.tar.gz | ||
RUN tar --extract --gunzip --file cmake-3.9.4.tar.gz | ||
RUN cd cmake-3.9.4 && \ | ||
./bootstrap && \ | ||
make -j2 && \ | ||
make install -j2 | ||
RUN rm cmake-3.9.4.tar.gz && \ | ||
rm -rf cmake-3.9.4 | ||
|
||
# Coveralls | ||
RUN apt-get install -y python-pip | ||
RUN pip install --upgrade pip | ||
RUN pip install --prefix /usr/local cpp-coveralls | ||
|
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