From a2c85f74ea7b9b3a7b81acd28c16f8467f280c27 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 15:41:32 -0700 Subject: [PATCH 1/6] Added travis integration --- .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ec74082 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,48 @@ +language: c +compiler: + - gcc + - clang + +before_script: +# installing libsodium, needed for Core + - git clone git://github.com/jedisct1/libsodium.git + - cd libsodium + - git checkout tags/0.4.2 + - ./autogen.sh + - ./configure && make check -j3 + - sudo make install + - cd .. +# installing libconfig, needed for DHT_bootstrap_daemon + - wget http://www.hyperrealm.com/libconfig/libconfig-1.4.9.tar.gz + - tar -xvzf libconfig-1.4.9.tar.gz + - cd libconfig-1.4.9 + - ./configure && make -j3 + - sudo make install + - cd .. +# creating librarys' links and updating cache + - sudo ldconfig +# installing sphinx, needed for documentation + - sudo apt-get install python-sphinx +# installing check, needed for unit tests + - sudo apt-get install check + + - git clone https://github.com/irungentoo/ProjectTox-Core.git core + - cd core + - mkdir build + - cmake .. + - make -j2 + - cd ../.. + - mv core /tmp +#Need an absolute path for autotools +script: + - autoreconf -i + - ./configure --with-libtoxcore-headers=/tmp/core --with-libtoxcore-libs=/tmp/core/build/core + - make -j2 +notifications: + email: false + + irc: + channels: + - "chat.freenode.net#tox-dev" + on_success: always + on_failure: always From 77da25553c9dd069e7e2439a768c405f2276a7d8 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 15:45:59 -0700 Subject: [PATCH 2/6] Fixed travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ec74082..b04748c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ before_script: - git clone https://github.com/irungentoo/ProjectTox-Core.git core - cd core - mkdir build + - cd build - cmake .. - make -j2 - cd ../.. From f2cdf5d9e531693029e87629ab22be827e0de139 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 15:54:53 -0700 Subject: [PATCH 3/6] Hopefully fixed travis --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b04748c..0ac1d29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,11 +33,10 @@ before_script: - cmake .. - make -j2 - cd ../.. - - mv core /tmp -#Need an absolute path for autotools + - mv core $TRAVIS_BUILD_DIR/ script: - autoreconf -i - - ./configure --with-libtoxcore-headers=/tmp/core --with-libtoxcore-libs=/tmp/core/build/core + - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/core/build/core - make -j2 notifications: email: false From 66deefe86f2e20f1f84bc827c842f5ba431c43df Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 15:58:52 -0700 Subject: [PATCH 4/6] Okay, now If fixed travis. --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0ac1d29..eaf4f36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,6 @@ before_script: - cmake .. - make -j2 - cd ../.. - - mv core $TRAVIS_BUILD_DIR/ script: - autoreconf -i - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/core/build/core From 416432c39f91df99b3d8e766c564203dd555ca1d Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 16:03:54 -0700 Subject: [PATCH 5/6] Okay, I'm an idiot. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eaf4f36..703594a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ before_script: - cd ../.. script: - autoreconf -i - - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/core/build/core + - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/core/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/core/build/core - make -j2 notifications: email: false From 628bb9472b3683b4a3d1c61d3fc528b9b7e59d99 Mon Sep 17 00:00:00 2001 From: Sean Qureshi Date: Fri, 23 Aug 2013 16:05:58 -0700 Subject: [PATCH 6/6] Actually fixed travis. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 703594a..e32267f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,8 @@ before_script: # installing check, needed for unit tests - sudo apt-get install check - - git clone https://github.com/irungentoo/ProjectTox-Core.git core - - cd core + - git clone https://github.com/irungentoo/ProjectTox-Core.git toxcore + - cd toxcore - mkdir build - cd build - cmake .. @@ -35,7 +35,7 @@ before_script: - cd ../.. script: - autoreconf -i - - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/core/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/core/build/core + - ./configure --with-libtoxcore-headers=$TRAVIS_BUILD_DIR/toxcore/core --with-libtoxcore-libs=$TRAVIS_BUILD_DIR/toxcore/build/core - make -j2 notifications: email: false