2016-03-01 08:49:27 +03:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
before_install:
|
Unit testing in CI (#651)
- in appveyor, install clang and cmake in cygwin, enable package upgrades, and build cmocka and enable testing for gcc only
- in `gitignore`, ignore generated cmocka folder
- in travis, use brew in osx to install cmocka, and enable testing for gcc and clang on os x and linux
- in `Makefile`, change to use `uname -s` to determine os type
- make `install-cmocka-linux.sh`, a simple shell script to download and install cmocka on linux
- in `bindings/Makefile`, enable `make -c` to call subdirectory makefiles instead of `cd [dir] && make` and include environment variables for runtime access to generated libraries
- in `samples/Makefile`, change to use `uname -s` to determine os type, remove `clean_bins` from `all` command, and include `Werror` for compile strictness
- in `tests/unit/Makefile`, add `cflags` for compile time access to cmocka headers and library, include execute vars for runtime access to cmocka and unicorn libs
- in `tests/unit/test_tb_x86.c`, comment out assert that would not compile
2016-10-21 19:21:10 +03:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./install-cmocka-linux.sh; fi
|
2016-03-01 08:49:27 +03:00
|
|
|
script:
|
2016-11-19 12:17:48 +03:00
|
|
|
- make && make -C bindings/go && make -C bindings/go test && make test
|
2016-03-01 08:49:27 +03:00
|
|
|
compiler:
|
Unit testing in CI (#651)
- in appveyor, install clang and cmake in cygwin, enable package upgrades, and build cmocka and enable testing for gcc only
- in `gitignore`, ignore generated cmocka folder
- in travis, use brew in osx to install cmocka, and enable testing for gcc and clang on os x and linux
- in `Makefile`, change to use `uname -s` to determine os type
- make `install-cmocka-linux.sh`, a simple shell script to download and install cmocka on linux
- in `bindings/Makefile`, enable `make -c` to call subdirectory makefiles instead of `cd [dir] && make` and include environment variables for runtime access to generated libraries
- in `samples/Makefile`, change to use `uname -s` to determine os type, remove `clean_bins` from `all` command, and include `Werror` for compile strictness
- in `tests/unit/Makefile`, add `cflags` for compile time access to cmocka headers and library, include execute vars for runtime access to cmocka and unicorn libs
- in `tests/unit/test_tb_x86.c`, comment out assert that would not compile
2016-10-21 19:21:10 +03:00
|
|
|
- clang
|
|
|
|
- gcc
|
2016-03-03 18:14:25 +03:00
|
|
|
os:
|
Unit testing in CI (#651)
- in appveyor, install clang and cmake in cygwin, enable package upgrades, and build cmocka and enable testing for gcc only
- in `gitignore`, ignore generated cmocka folder
- in travis, use brew in osx to install cmocka, and enable testing for gcc and clang on os x and linux
- in `Makefile`, change to use `uname -s` to determine os type
- make `install-cmocka-linux.sh`, a simple shell script to download and install cmocka on linux
- in `bindings/Makefile`, enable `make -c` to call subdirectory makefiles instead of `cd [dir] && make` and include environment variables for runtime access to generated libraries
- in `samples/Makefile`, change to use `uname -s` to determine os type, remove `clean_bins` from `all` command, and include `Werror` for compile strictness
- in `tests/unit/Makefile`, add `cflags` for compile time access to cmocka headers and library, include execute vars for runtime access to cmocka and unicorn libs
- in `tests/unit/test_tb_x86.c`, comment out assert that would not compile
2016-10-21 19:21:10 +03:00
|
|
|
- linux
|
|
|
|
- osx
|
2017-03-12 05:04:27 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-01-02 04:45:13 +03:00
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env: CFLAGS="-m32" LDFLAGS="-m32" LDFLAGS_STATIC="-m32" UNICORN_QEMU_FLAGS="--cpu=i386"
|
|
|
|
script: make && make -C tests/unit test && make -C tests/regress test
|
2019-02-28 20:09:41 +03:00
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
before_install:
|
|
|
|
compiler: gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lib32ncurses5-dev
|
|
|
|
- lib32z1-dev
|
|
|
|
- libpthread-stubs0-dev
|
|
|
|
- lib32gcc-4.8-dev
|
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
|
|
|
- libcmocka-dev
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
before_install:
|
|
|
|
compiler: clang
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lib32ncurses5-dev
|
|
|
|
- lib32z1-dev
|
|
|
|
- libpthread-stubs0-dev
|
|
|
|
- lib32gcc-4.8-dev
|
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
|
|
|
- libcmocka-dev
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
|
|
|
before_install:
|
|
|
|
compiler: gcc
|
|
|
|
env: CFLAGS="-m32" LDFLAGS="-m32" LDFLAGS_STATIC="-m32" UNICORN_QEMU_FLAGS="--cpu=i386"
|
|
|
|
script: make && make -C tests/unit test && make -C tests/regress test
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lib32ncurses5-dev
|
|
|
|
- lib32z1-dev
|
|
|
|
- libpthread-stubs0-dev
|
|
|
|
- lib32gcc-4.8-dev
|
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
|
|
|
- libcmocka-dev:i386
|
2017-10-07 18:56:02 +03:00
|
|
|
- if: branch = master
|
|
|
|
os: osx
|
2017-03-12 16:31:49 +03:00
|
|
|
script: brew install --HEAD unicorn && brew test unicorn
|
2017-03-12 06:11:06 +03:00
|
|
|
compiler: gcc
|
2017-10-07 18:56:02 +03:00
|
|
|
- if: branch = master
|
|
|
|
os: osx
|
2017-03-12 16:31:49 +03:00
|
|
|
script: brew install --HEAD unicorn && brew test unicorn
|
2017-03-12 06:11:06 +03:00
|
|
|
compiler: clang
|
|
|
|
allow_failures:
|
|
|
|
- os: osx
|
2017-03-12 16:31:49 +03:00
|
|
|
script: brew install --HEAD unicorn && brew test unicorn
|
Unit testing in CI (#651)
- in appveyor, install clang and cmake in cygwin, enable package upgrades, and build cmocka and enable testing for gcc only
- in `gitignore`, ignore generated cmocka folder
- in travis, use brew in osx to install cmocka, and enable testing for gcc and clang on os x and linux
- in `Makefile`, change to use `uname -s` to determine os type
- make `install-cmocka-linux.sh`, a simple shell script to download and install cmocka on linux
- in `bindings/Makefile`, enable `make -c` to call subdirectory makefiles instead of `cd [dir] && make` and include environment variables for runtime access to generated libraries
- in `samples/Makefile`, change to use `uname -s` to determine os type, remove `clean_bins` from `all` command, and include `Werror` for compile strictness
- in `tests/unit/Makefile`, add `cflags` for compile time access to cmocka headers and library, include execute vars for runtime access to cmocka and unicorn libs
- in `tests/unit/test_tb_x86.c`, comment out assert that would not compile
2016-10-21 19:21:10 +03:00
|
|
|
addons:
|
2019-01-02 04:45:13 +03:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lib32ncurses5-dev
|
|
|
|
- lib32z1-dev
|
|
|
|
- lib32bz2-dev
|
|
|
|
- libpthread-stubs0-dev
|
|
|
|
- lib32gcc-4.8-dev
|
|
|
|
- libc6-dev-i386
|
|
|
|
- gcc-multilib
|
2018-11-19 18:51:58 +03:00
|
|
|
homebrew:
|
|
|
|
brewfile: true
|