diff options
author | Donghoon Shin <dhs.shin@samsung.com> | 2016-09-19 17:36:01 +0900 |
---|---|---|
committer | Donghoon Shin <dhs.shin@samsung.com> | 2016-09-19 17:36:01 +0900 |
commit | e8acd13cc87ea038ecd6103e4088ce3cf5d501d7 (patch) | |
tree | 4c7c8cc683a297463996aa286f2f7758e8691b8f /circle.yml | |
parent | b95c2492274542bc4718a863f5d88f37a0a788ab (diff) | |
download | clewarecontrol-release-20160930.tar.gz clewarecontrol-release-20160930.tar.bz2 clewarecontrol-release-20160930.zip |
Update initial source codesHEADupstream/4.3submit/trunk/20201029.132130submit/trunk/20201029.114030submit/trunk/20200409.202020submit/trunk/20200409.200220submit/trunk/20200409.194520submit/trunk/20191101.102136submit/trunk/20191030.112603submit/trunk/20191017.233826submit/trunk/20191017.111201submit/trunk/20190927.012842submit/devel/20190730.075528submit/devel/20190730.074447accepted/tools/devbase/tools/legacy/20240424.050722accepted/tools/devbase/tools/legacy/20240423.040742accepted/tools/devbase/tools/legacy/20240422.110908accepted/tizen/devbase/tools/20190927.045004release-20160930masterdevelaccepted/tools_devbase_tools_legacyaccepted/tizen_devbase_tools
Change-Id: I59bac2188ffbfe5a2ad2d9dcb33847aabfaffe44
Diffstat (limited to 'circle.yml')
-rw-r--r-- | circle.yml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..1ec501c --- /dev/null +++ b/circle.yml @@ -0,0 +1,70 @@ +machine: + timezone: + Europe/Vienna + environment: + _SDK_: /usr/local/android-sdk-linux/ + PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig +dependencies: + override: + - echo dummy + pre: + - sudo apt-get update > /dev/null 2> /dev/null + - sudo apt-get install telnet > /dev/null 2> /dev/null + - sudo apt-get install x11-utils > /dev/null 2> /dev/null + - sudo apt-get install xvkbd > /dev/null 2> /dev/null + - sudo apt-get install swig + - sudo apt-get install libusb-dev + - sudo apt-get install python-dev ; exit 0 + +# install libhidapi ---------------- + - cp /etc/apt/sources.list /tmp/aa + - echo 'deb http://cz.archive.ubuntu.com/ubuntu trusty main universe' >> /tmp/aa + - cat /tmp/aa; ls -al /etc/apt/sources.list /tmp/aa + - sudo cp -v /tmp/aa /etc/apt/sources.list + - sudo apt-get update + - sudo apt-get install libhidapi-dev + - dpkg-query -L libhidapi-dev + - sudo cp -av /usr/lib/x86_64-linux-gnu/pkgconfig/hidapi-libusb.pc /usr/lib/x86_64-linux-gnu/pkgconfig/hidapi.pc + - pkg-config --cflags hidapi ; exit 0 + - pkg-config --libs hidapi ; exit 0 +# install libhidapi ---------------- + +# --- binary --- + - make + - sudo make install + - cp -av clewarecontrol $CIRCLE_ARTIFACTS/clewarecontrol_$CIRCLE_SHA1 || exit 1 +# --- binary --- + +# --- perl extension --- + - sed -i -e 's#.o -o cle#.o -lhidapi-libusb -o cle#' Makefile # add hidapi-libusb to perl compile command!! + - sudo -- sh -c "make cleware_perl" + - mkdir $CIRCLE_ARTIFACTS/perl + - cp -av cleware.so $CIRCLE_ARTIFACTS/perl/ || exit 1 + - ldd cleware.so + - cp -av cleware.pm $CIRCLE_ARTIFACTS/perl/ || exit 1 +# --- perl extension --- + +# --- python extension --- + - cp setup.py_CI setup.py # use setup file with added libs + - sudo make clean + - sudo -- sh -c "make cleware_python" + - mkdir $CIRCLE_ARTIFACTS/python + - cp -av cleware.py $CIRCLE_ARTIFACTS/python/ || exit 1 + - cp -av _cleware.so $CIRCLE_ARTIFACTS/python/ || exit 1 + - ldd _cleware.so +# --- python extension --- + + - make # make binary again + - ls -al + +test: + pre: + - echo 'mtools_skip_check=1' > ~/.mtoolsrc + override: + - ./clewarecontrol -l # test binary + + - printf 'import cleware \n' | python # test python extension + - ./example.py + + - printf 'use Module::Load; \n load cleware; \n '|perl -w # test perl module + - ./example.pl |