circle.yml 965 Bytes
Newer Older
Brendan Long's avatar
Brendan Long committed
1 2
machine:
  environment:
3 4
    ALLJOYN_INSTALL_DIR: \$(HOME)/alljoyn-15.09.00a-src/build/linux/x86_64/release/dist/cpp
    GTEST_DIR: \$(HOME)/gtest
Brendan Long's avatar
Brendan Long committed
5 6 7 8

dependencies:
  pre:
    - sudo apt-get update
9 10 11 12 13 14 15 16
    - sudo apt-get install libcap-dev scons libgtest-dev
    - if [[ ! -e ~/gtest ]] ; then
        cd ~ ;
        cp -r /usr/src/gtest . ;
        cd gtest ;
        cmake -DCMAKE_BUILD_TYPE=RELEASE . ;
        make ;
      fi
17 18 19 20 21 22 23
    - if [[ ! -e ~/alljoyn-15.09.00a-src ]] ; then
        cd ~ ;
        wget --no-check-certificate https://allseenalliance.org/releases/alljoyn/15.09/alljoyn-15.09.00a-src.tar.gz ;
        tar -xf alljoyn-15.09.00a-src.tar.gz ;
        cd alljoyn-15.09.00a-src ;
        scons BINDINGS=cpp OS=linux CPU=x86_64 VARIANT=release BUILD_SERVICE_SAMPLES=off WS=off BT=off ICE=off -j4 ;
      fi
Brendan Long's avatar
Brendan Long committed
24 25

  post:
26 27
    - make -j4
    - make tests -j4
Brendan Long's avatar
Brendan Long committed
28 29 30

  cache_directories:
    - "~/alljoyn-15.09.00a-src"
31
    - "~/gtest"
Brendan Long's avatar
Brendan Long committed
32

33 34 35
test:
  override:
    - make check