-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from nvtkaszpir/travis
Add first travis builds for multiple architectures
- Loading branch information
Showing
13 changed files
with
204 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,9 @@ config.status | |
src/Makefile.dl | ||
src/Makefile.dl32 | ||
src/Makefile.vm | ||
|
||
#virtualenv | ||
.venv/ | ||
|
||
# build output dirs | ||
build_*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
dist: trusty | ||
sudo: required | ||
|
||
# branches: | ||
# only: | ||
# - master | ||
|
||
os: | ||
- linux | ||
|
||
# in theory travis should detect what to install, | ||
# but we use meson, which is not supported by travis yet and we need custom commands | ||
compiler: | ||
- gcc | ||
|
||
language: | ||
- c | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
env: TARGET=linux-i386 | ||
- os: linux | ||
dist: trusty | ||
env: TARGET=linux-amd64 | ||
- os: linux | ||
dist: trusty | ||
env: TARGET=linux-armv7hl | ||
- os: linux | ||
dist: trusty | ||
env: TARGET=win-x86 | ||
- os: linux | ||
dist: trusty | ||
env: TARGET=win-x64 | ||
|
||
before_install: | ||
# show some extra info | ||
- export | sort | ||
- env | sort | ||
# update base distro | ||
- sudo apt-get update | ||
# - sudo apt-get -y upgrade | ||
# - sudo apt-get -y dist-upgrade | ||
# install base packages | ||
- sudo apt-get -y install build-essential python-virtualenv python3-dev python3-pip ninja-build cmake gcc-multilib | ||
# install cross complier if we gonna do binaries for windows | ||
- if [ -z "${TARGET##*win*}" ]; then sudo apt-get -y install mingw-w64 ; fi | ||
# install cross compiler tools if we gonna do binares for arm/raspberry | ||
# notice it will remove gcc-multilib | ||
- if [ -z "${TARGET##*arm*}" ]; then sudo apt-get -y install gcc-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf ;fi | ||
# activate virtualenv with python3, meson requires python3 | ||
- virtualenv .venv --python=python3 | ||
- . .venv/bin/activate | ||
- pip3 install --upgrade pip | ||
# install python packages like meson, ninja etc... | ||
- pip3 install -r requirements.txt | ||
|
||
# each script section is executed in matrix build | ||
script: | ||
- mkdir build_${TARGET} || true | ||
- meson build_${TARGET} --cross-file cross-compilation_${TARGET}.txt | ||
- ninja -v -C build_${TARGET} | ||
# print basic info about complied files | ||
- find build_${TARGET}/ -type f -name "qwprogs.*" -exec file {} \; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[binaries] | ||
c = 'arm-linux-gnueabihf-gcc' | ||
cpp = 'arm-linux-gnueabihf-cpp' | ||
ar = 'arm-linux-gnueabihf-ar' | ||
strip = 'arm-linux-gnueabihf-strip' | ||
pkgconfig = 'arm-linux-gnueabihf-pkg-config' | ||
|
||
[host_machine] | ||
system = 'linux' | ||
cpu_family = 'arm' | ||
cpu = 'armv7hl' | ||
endian = 'little' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
meson==0.41.2 | ||
ninja==1.7.2.post2 | ||
scikit-build==0.6.1 |