-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
365 additions
and
205 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
sudo: required | ||
dist: trusty | ||
|
||
language: cpp | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
env: TARGET=linux_x86_64 | ||
- os: linux | ||
env: TARGET=linux_i686 | ||
- os: linux | ||
env: TARGET=linux_armv7l | ||
- os: linux | ||
env: TARGET=linux_aarch64 | ||
- os: linux | ||
env: TARGET=windows_x86 | ||
- os: linux | ||
env: TARGET=windows_amd64 | ||
- os: osx | ||
env: TARGET=darwin | ||
|
||
before_script: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -y -qq; fi | ||
|
||
script: | ||
- bash build.sh $TARGET | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then md5 _packages/**/*.tar.gz; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then md5sum _packages/**/*.tar.gz; fi | ||
|
||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: P3t3txMvsfFXymL/Z6AVsNTygLytSL2F/GNdLpvB3ULwz0qvVzwW0ep0DZIbUxgTbOR341zUpGlKYMaS0EvUAt3TrIATa4nI9CYKavRT8CKrAUyBg2OAN9+gVmBzOEgGvgGkTjzd1OUHn0YjYjYwV2qKXHwUi21q9rXjwc20qB+lVNWkdPe3sOZhI7yUmh3WcU1jGtehQFYlz40i6rS+ivAKC8FN4wfBW2OJVCZ67q9P+FUbpXccD5n3A/09DGhaatWqD7ULwBkl75Rmk4L51LeWKJvOGB3Af2uLqAQ18gkmBpydccqmErfldOKuuhnMgDzkLKfWg7jbvCBIqaFhPIOo4p6nBAnGrQFklwv7obwEtSbqnupP0REj8p+igMMANZYtVVweSrhw1fqHOFhNHC8abmVzOaos6rh1e9Nm2b4O0QCRIt1Wxc5iJy8Bfo4C8FBiSAHvgyKi1ZgPgnU1IfEw0Z94XYbxlOunXyh3YA5FcLUrCAfFAszGita0Bl9wOJn7bMB0nZhhpxLcms6iT0FH7na7tPl72MmjNEwLmns3/HyzUxTofUnsGuw669n73xvO/wQRqQgzUT8EW6m/25+kRWd8kWo5vUYOyVpci/QpVpJ5xytbWK99UYXfwMTBhh07Q3Wdpl7uDVzs25GHYezHXBxlAYbt5flYsI9tprk= | ||
file: | ||
- _packages/**/*.tar.gz | ||
file_glob: true | ||
skip_cleanup: true | ||
on: | ||
all_branches: true |
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
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 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc) | ||
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++) |
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 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) | ||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) |
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 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_C_COMPILER gcc -m32) | ||
set(CMAKE_CXX_COMPILER g++ -m32) |
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 @@ | ||
SET(CMAKE_SYSTEM_NAME Windows) | ||
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) | ||
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) |
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 @@ | ||
SET(CMAKE_SYSTEM_NAME Windows) | ||
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) | ||
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
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,72 @@ | ||
#!/bin/bash | ||
################################## | ||
# System tools cleaner # | ||
################################## | ||
|
||
# -- Target architectures | ||
ARCH=$1 | ||
TARGET_ARCHS="linux_x86_64 linux_i686 linux_armv7l linux_aarch64 windows_x86 windows_amd64 darwin" | ||
|
||
# -- Store current dir | ||
WORK_DIR=$PWD | ||
# -- Folder for building the source code | ||
BUILDS_DIR=$WORK_DIR/_builds | ||
# -- Folder for storing the generated packages | ||
PACKAGES_DIR=$WORK_DIR/_packages | ||
|
||
# -- Test script function | ||
function test_bin { | ||
$WORK_DIR/test/test_bin.sh $1 | ||
if [ $? != "0" ]; then | ||
exit 1 | ||
fi | ||
} | ||
|
||
# -- Check ARCH | ||
if [[ $# > 1 ]]; then | ||
echo "" | ||
echo "Error: too many arguments" | ||
exit 1 | ||
fi | ||
|
||
if [[ $# < 1 ]]; then | ||
echo "" | ||
echo "Usage: bash clean.sh TARGET" | ||
echo "" | ||
echo "Targets: $TARGET_ARCHS" | ||
exit 1 | ||
fi | ||
|
||
if [[ $ARCH =~ [[:space:]] || ! $TARGET_ARCHS =~ (^|[[:space:]])$ARCH([[:space:]]|$) ]]; then | ||
echo "" | ||
echo ">>> WRONG ARCHITECTURE \"$ARCH\"" | ||
exit 1 | ||
fi | ||
|
||
echo "" | ||
echo ">>> ARCHITECTURE \"$ARCH\"" | ||
|
||
printf "Are you sure? [y/N]:${NC} " | ||
read RESP | ||
case "$RESP" in | ||
[yY][eE][sS]|[yY]) | ||
# -- Directory for compiling the tools | ||
BUILD_DIR=$BUILDS_DIR/build_$ARCH | ||
|
||
# -- Directory for installation the target files | ||
PACKAGE_DIR=$PACKAGES_DIR/build_$ARCH | ||
|
||
# -- Remove the package dir | ||
rm -r -f $PACKAGE_DIR | ||
|
||
# -- Remove the build dir | ||
rm -r -f $BUILD_DIR | ||
|
||
echo "" | ||
echo ">> CLEAN" | ||
;; | ||
*) | ||
echo "" | ||
echo ">> ABORT" | ||
;; | ||
esac |
Oops, something went wrong.