mirror of https://github.com/nirenjan/libx52.git
parent
dcb5b60cdf
commit
1fa4cb4eb4
56
.travis.yml
56
.travis.yml
|
|
@ -1,56 +0,0 @@
|
||||||
language: c
|
|
||||||
script: ./.travis_build.sh
|
|
||||||
|
|
||||||
# Compile on both MacOS and Linux
|
|
||||||
os:
|
|
||||||
- osx
|
|
||||||
- linux
|
|
||||||
|
|
||||||
# Compile using both gcc & clang
|
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- os: linux
|
|
||||||
dist: xenial
|
|
||||||
compiler: gcc
|
|
||||||
- os: linux
|
|
||||||
dist: xenial
|
|
||||||
compiler: clang
|
|
||||||
- os: linux
|
|
||||||
dist: bionic
|
|
||||||
compiler: gcc
|
|
||||||
- os: linux
|
|
||||||
dist: bionic
|
|
||||||
compiler: clang
|
|
||||||
allow_failures:
|
|
||||||
- os: osx
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libusb-1.0-0-dev
|
|
||||||
- libudev-dev
|
|
||||||
- autopoint
|
|
||||||
- faketime
|
|
||||||
- libcmocka-dev
|
|
||||||
- libhidapi-dev
|
|
||||||
homebrew:
|
|
||||||
packages:
|
|
||||||
- libusb
|
|
||||||
- gettext
|
|
||||||
- cmocka
|
|
||||||
- hidapi
|
|
||||||
|
|
||||||
# Ensure that build dependencies are available on OSX
|
|
||||||
before_script:
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install libusb gettext cmocka hidapi; fi
|
|
||||||
|
|
||||||
# Enable parallel make
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- MAKEFLAGS="-j 2"
|
|
||||||
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# Script to run automated build and testing on Travis-CI
|
|
||||||
|
|
||||||
# Abort early in case of failure
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Generate the build files
|
|
||||||
./autogen.sh
|
|
||||||
|
|
||||||
# Create a temporary directory to store build artifacts
|
|
||||||
rm -rf build
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
|
|
||||||
# Run the configuration script
|
|
||||||
../configure
|
|
||||||
|
|
||||||
# Build the sourcecode
|
|
||||||
make V=0
|
|
||||||
|
|
||||||
# Verify that the distribution works
|
|
||||||
# This also runs any tests
|
|
||||||
make distcheck
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue