diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-10 12:28:33 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-12 01:13:11 +0100 |
commit | b5cfd33340a57f6056cc99c6f6555b10f0e82971 (patch) | |
tree | 26d3df2f0ade31e4dd7938b057532156a43d8441 /other/travis/autotools-script | |
parent | 459f8f201393ac458445aebbd14c45bf4d6f5912 (diff) |
Add and use CMake build script
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes.
Also, perform distcheck on travis to ensure that make dist works. It's not
actually failing the build at the moment due to broken tests.
Diffstat (limited to 'other/travis/autotools-script')
-rwxr-xr-x | other/travis/autotools-script | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/other/travis/autotools-script b/other/travis/autotools-script new file mode 100755 index 00000000..284a52d4 --- /dev/null +++ b/other/travis/autotools-script | |||
@@ -0,0 +1,20 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e -x | ||
4 | |||
5 | # Build toxcore and run tests. | ||
6 | ./autogen.sh | ||
7 | ./configure \ | ||
8 | --with-libsodium-libs=$CACHE_DIR/lib \ | ||
9 | --with-libsodium-headers=$CACHE_DIR/include \ | ||
10 | --enable-daemon \ | ||
11 | --enable-logging \ | ||
12 | --enable-ntox | ||
13 | |||
14 | make -j `nproc` | ||
15 | # This doesn't currently work on Travis, because the autotools build is broken. | ||
16 | # It does not look up libsodium by pkg-config, so without the --with flags it | ||
17 | # won't find it. We don't care that much about distcheck at this point, but we | ||
18 | # do care whether it configures/builds at all, which is exercised by the make | ||
19 | # call above. Tests are executed by the cmake build. | ||
20 | make distcheck -j `nproc` || true | ||