forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a seperate build for to run the format tests
- Loading branch information
Gregory Mullen (grayhatter)
committed
Jan 1, 2017
1 parent
4dc38c0
commit d65fc28
Showing
7 changed files
with
47 additions
and
8 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ Thumbs.db | |
*.tmp | ||
|
||
# Make | ||
/_build | ||
/_build* | ||
/_install | ||
/tox-0.0.0* | ||
CMakeCache.txt | ||
|
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
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,31 @@ | ||
#!/bin/sh | ||
|
||
# Set up opam. | ||
opam init -y | ||
eval `opam config env` | ||
|
||
# Install required opam packages. | ||
opam install -y ocamlfind ppx_deriving menhir | ||
|
||
# Build apidsl. | ||
git clone --depth=1 https://github.com/TokTok/apidsl ../apidsl | ||
make -C ../apidsl -j$NPROC | ||
|
||
|
||
# Install astyle (version in ubuntu-precise too old). | ||
[ -f $ASTYLE ] || { | ||
wget -O ../astyle.tar.gz https://launchpad.net/ubuntu/+archive/primary/+files/astyle_2.05.1.orig.tar.gz | ||
tar -xf ../astyle.tar.gz -C $CACHE_DIR | ||
make -C $CACHE_DIR/astyle/build/gcc -j$NPROC | ||
} | ||
|
||
# Install libsodium (not in ubuntu-precise). | ||
[ -f $CACHE_DIR/lib/libsodium.a ] || { | ||
git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium ../libsodium | ||
cd ../libsodium # pushd | ||
./autogen.sh | ||
./configure --prefix=$CACHE_DIR | ||
make install -j$NPROC | ||
cd - # popd | ||
} | ||
|
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,11 @@ | ||
|
||
cmake -B$BUILD_DIR \ | ||
-H. \ | ||
-DFORMAT_TEST=ON \ | ||
$CMAKE_EXTRA_FLAGS | ||
|
||
export CTEST_OUTPUT_ON_FAILURE=1 | ||
|
||
make | ||
|
||
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