-
Notifications
You must be signed in to change notification settings - Fork 85
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
1 parent
c73b462
commit 78b1dc1
Showing
8 changed files
with
109 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
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 @@ | ||
# Based upon the manylinux image from pypa | ||
FROM quay.io/pypa/manylinux1_x86_64 | ||
|
||
COPY docker /opt/sweep/bin | ||
COPY libsweep /opt/sweep/libsweep | ||
COPY jsweep /opt/sweep/jsweep | ||
|
||
ENV PATH /opt/sweep/bin:$PATH | ||
|
||
RUN install-yum.sh | ||
|
||
CMD build.sh |
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,17 @@ | ||
function check_var { | ||
if [ -z "$1" ]; then | ||
echo "required variable not defined" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function check_sha256sum { | ||
local fname=$1 | ||
check_var ${fname} | ||
local sha256=$2 | ||
check_var ${sha256} | ||
|
||
echo "${sha256} ${fname}" > ${fname}.sha256 | ||
sha256sum -c ${fname}.sha256 | ||
rm -f ${fname}.sha256 | ||
} |
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,22 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# set cmake as cmake28 | ||
ln -s "$(which cmake28)" /opt/sweep/bin/cmake | ||
|
||
gradleTask="$GRADLE_TASK" | ||
if [[ "$gradleTask" == "" ]]; then gradleTask="build"; fi | ||
|
||
cd /opt/sweep | ||
pushd libsweep | ||
rm -rf build | ||
mkdir -p build | ||
cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DDUMMY=On | ||
cmake --build . | ||
popd | ||
|
||
pushd jsweep | ||
./gradlew "$gradleTask" | ||
popd |
Binary file not shown.
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,30 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
EPEL_RPM_HASH=0dcc89f9bf67a2a515bad64569b7a9615edc5e018f676a578d5fd0f17d3c81d4 | ||
DEVTOOLS_HASH=a8ebeb4bed624700f727179e6ef771dafe47651131a00a78b342251415646acc | ||
|
||
# CentOS 5 is only available through vault. | ||
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf | ||
sed -i 's/mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo | ||
sed -i 's|#\(baseurl.*\)mirror.centos.org/centos/$releasever|\1vault.centos.org/5.11|' /etc/yum.repos.d/*.repo | ||
sed -i 's|#\(baseurl.*\)download.fedoraproject.org/pub|\1archives.fedoraproject.org/pub/archive|' /etc/yum.repos.d/*.repo | ||
|
||
MY_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
source "$MY_DIR/build-utils.sh" | ||
|
||
# EPEL support | ||
yum -y install wget curl | ||
# curl -sLO https://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | ||
cp "$MY_DIR/epel-release-5-4.noarch.rpm" . | ||
check_sha256sum epel-release-5-4.noarch.rpm $EPEL_RPM_HASH | ||
|
||
# Dev toolset (for LLVM and other projects requiring C++11 support) | ||
curl -sLO http://people.centos.org/tru/devtools-2/devtools-2.repo | ||
check_sha256sum devtools-2.repo $DEVTOOLS_HASH | ||
mv devtools-2.repo /etc/yum.repos.d/devtools-2.repo | ||
rpm -Uvh --replacepkgs epel-release-5*.rpm | ||
rm -f epel-release-5*.rpm | ||
|
||
yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel |
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,9 @@ | ||
#!/bin/bash | ||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||
docker build -t "travis-sweep" . | ||
docker run -e GRADLE_TASK="build" "travis-sweep" | ||
else | ||
pushd jsweep | ||
./gradlew build | ||
popd | ||
fi |
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,10 @@ | ||
#!/bin/bash | ||
task="$1" | ||
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||
docker build -t "travis-sweep" . | ||
docker run -e GRADLE_TASK="$task" "travis-sweep" | ||
else | ||
pushd jsweep | ||
./gradlew "$task" | ||
popd | ||
fi |