summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoff <zoff99@users.noreply.github.com>2016-11-27 19:27:18 +0100
committeriphydf <iphydf@users.noreply.github.com>2017-01-03 11:30:57 +0000
commit2ad3ad61b84f3d7c7785a044d582ca6daf49b3ee (patch)
treee92d128af6c769cb8bbcb181f155989ebbfddf97
parent4e731bb43521dfc3c4f2444612d7b88b09df3346 (diff)
Add CircleCI Support
-rw-r--r--circle.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/circle.yml b/circle.yml
new file mode 100644
index 00000000..20653dd5
--- /dev/null
+++ b/circle.yml
@@ -0,0 +1,45 @@
1machine:
2 environment:
3 MAKEFLAGS: "j4"
4dependencies:
5 pre:
6 - sudo apt-get update
7 - sudo apt-get install clang
8 - sudo apt-get install build-essential libtool autotools-dev automake checkinstall check git yasm
9 - sudo apt-get install libopus-dev libvpx-dev pkg-config
10
11# ------------ network_test requires that "localhost" resolves to ::1 ------------
12 - sudo bash -c "echo '::1 localhost ipv6-localhost ipv6-loopback' >> /etc/hosts" # ipv6 localhost entry
13# ------------ network_test requires that "localhost" resolves to ::1 ------------
14
15 #- sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
16 #- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
17
18 - gcc --version ; exit 0
19 - clang --version ; exit 0
20
21compile:
22 override:
23 ### ------- get libsodium -------
24 - mkdir ~/libsodium
25 - cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git
26 - cd ~/libsodium/ ; cd libsodium/ ; git checkout tags/1.0.11
27 - cd ~/libsodium/ ; cd libsodium/ ; ./autogen.sh
28 - cd ~/libsodium/ ; cd libsodium/ ; ./configure && make check
29 - cd ~/libsodium/ ; cd libsodium/ ; sudo bash -c "printf 'y\naa\n\n' | checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc --deldesc=no --pkglicense='GPL2'"
30 - cd ~/libsodium/ ; cd libsodium/ ; sudo ldconfig
31 ### ------- get libsodium -------
32
33##### ------------ BUILD ------------
34 - cmake -DWARNINGS=OFF .
35 #- cmake .
36 - make
37 - sudo make install
38 - sudo ldconfig -v 2>/dev/null | grep toxcore
39 - sudo ldconfig -v 2>/dev/null | grep sodium
40##### ------------ BUILD ------------
41
42test:
43 override:
44 - make VERBOSE=1 test ; ex1=$? ; if [ $ex1 -ne 0 ]; then sleep 60; make VERBOSE=1 test ; exit $? ; fi
45