Skip to content

Commit

Permalink
Experimental CircleCI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkschulze committed Apr 18, 2019
1 parent a93299c commit 556beed
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2

jobs:
build:
docker:
- image: debian:stretch
steps:
- run:
name: Installing sudo
command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
- run:
name: Installing Build System
command: 'apt-get update && apt-get install -y git build-essential libboost-system-dev cmake python2.7'
- checkout
- run: git submodule sync
- run: git submodule update --init
- run:
name: Creating Build Files
command: 'cd svgnative && cmake -Bbuild/linux -H.'
- run:
name: Creating Binary Files
command: 'cd svgnative && cmake --build build/linux'
- run:
name: Run tests
command: 'cd svgnative && /usr/bin/python2.7 script/runTest.py --test=test'
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
branch = modifications
[submodule "third_party/cpp-base64"]
path = third_party/cpp-base64
url = https://github.com/ReneNyffenegger/cpp-base64
url = git@github.com:ReneNyffenegger/cpp-base64.git
3 changes: 2 additions & 1 deletion svgnative/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ cd build
cmake -Bbuild/win64 -H. -G "Visual Studio 15 2017 Win64"
cmake -Bbuild/win32 -H. -G "Visual Studio 15 2017"
cmake -Bbuild/mac -H. -G "Xcode"
cmake -Bbuild/linux -H.

cmake --build build/win64 --config Release
]]

cmake_minimum_required(VERSION 3.10.0)
cmake_minimum_required(VERSION 3.7.2)
project(SVGNativeViewer)
enable_language(CXX)
set(CMAKE_CXX_STANDARD 14)
Expand Down
4 changes: 2 additions & 2 deletions svgnative/script/runTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ def exportTestFilesSequential(files, args):
return -1
p.wait()
if not compare_text_files(expectedFile, actualFile, diffFile):
print(u'\u274c' + ' ' + inputFile + ' failed.')
print(' ' + inputFile + ' FAILED.')
else:
print(u'\u2713' + ' ' + inputFile + ' passed.')
print(' ' + inputFile + ' passed.')

exportTestFilesSequential(files, args)
return 0
Expand Down
1 change: 1 addition & 0 deletions third_party/cpp-base64
Submodule cpp-base64 added at 642080
1 change: 1 addition & 0 deletions third_party/stylesheet
Submodule stylesheet added at c81c4b

0 comments on commit 556beed

Please sign in to comment.