summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--circle.yml51
1 files changed, 25 insertions, 26 deletions
diff --git a/circle.yml b/circle.yml
index 20653dd5..26342213 100644
--- a/circle.yml
+++ b/circle.yml
@@ -3,43 +3,42 @@ machine:
3 MAKEFLAGS: "j4" 3 MAKEFLAGS: "j4"
4dependencies: 4dependencies:
5 pre: 5 pre:
6 - sudo apt-get update 6 - sudo apt-get update
7 - sudo apt-get install clang 7 - sudo apt-get install clang
8 - sudo apt-get install build-essential libtool autotools-dev automake checkinstall check git yasm 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 9 - sudo apt-get install libopus-dev libvpx-dev pkg-config
10 10
11# ------------ network_test requires that "localhost" resolves to ::1 ------------ 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 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 ------------ 13# ------------ network_test requires that "localhost" resolves to ::1 ------------
14 14
15 #- sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 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 16 #- sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 100
17 17
18 - gcc --version ; exit 0 18 - gcc --version ; exit 0
19 - clang --version ; exit 0 19 - clang --version ; exit 0
20 20
21compile: 21compile:
22 override: 22 override:
23 ### ------- get libsodium ------- 23 ### ------- get libsodium -------
24 - mkdir ~/libsodium 24 - mkdir ~/libsodium
25 - cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git 25 - cd ~/libsodium/ ; git clone https://github.com/jedisct1/libsodium.git
26 - cd ~/libsodium/ ; cd libsodium/ ; git checkout tags/1.0.11 26 - cd ~/libsodium/ ; cd libsodium/ ; git checkout tags/1.0.11
27 - cd ~/libsodium/ ; cd libsodium/ ; ./autogen.sh 27 - cd ~/libsodium/ ; cd libsodium/ ; ./autogen.sh
28 - cd ~/libsodium/ ; cd libsodium/ ; ./configure && make check 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'" 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 30 - cd ~/libsodium/ ; cd libsodium/ ; sudo ldconfig
31 ### ------- get libsodium ------- 31 ### ------- get libsodium -------
32 32
33##### ------------ BUILD ------------ 33##### ------------ BUILD ------------
34 - cmake -DWARNINGS=OFF . 34 - cmake -DWARNINGS=OFF .
35 #- cmake . 35 #- cmake .
36 - make 36 - make
37 - sudo make install 37 - sudo make install
38 - sudo ldconfig -v 2>/dev/null | grep toxcore 38 - sudo ldconfig -v 2>/dev/null | grep toxcore
39 - sudo ldconfig -v 2>/dev/null | grep sodium 39 - sudo ldconfig -v 2>/dev/null | grep sodium
40##### ------------ BUILD ------------ 40##### ------------ BUILD ------------
41 41
42test: 42test:
43 override: 43 override:
44 - make VERBOSE=1 test ; ex1=$? ; if [ $ex1 -ne 0 ]; then sleep 60; make VERBOSE=1 test ; exit $? ; fi 44 - make VERBOSE=1 test || make VERBOSE=1 ARGS="--rerun-failed" test
45