2016-03-01 08:49:27 +03:00
|
|
|
language: c
|
|
|
|
sudo: false
|
|
|
|
before_install:
|
2018-01-05 05:29:49 +03:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew bundle; fi
|
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:
|
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:
|
|
|
|
apt:
|
|
|
|
packages:
|
2016-11-19 12:17:48 +03:00
|
|
|
# mingw-w64 packages too old in precise
|