changing to gcc-only build for Linux
fix DOCKER_IMAGE remove docker_build_image
This commit is contained in:
parent
9d3800265e
commit
e3bc1344ef
2 changed files with 34 additions and 6 deletions
12
.travis.yml
12
.travis.yml
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- &build-template
|
- &build-template
|
||||||
stage: build
|
stage: build
|
||||||
name: linux
|
name: linux
|
||||||
env: NAME=linux EXT=
|
env: NAME=linux DOCKER_IMAGE=lbry/build_lbrycrd_gcc EXT=
|
||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
language: minimal
|
language: minimal
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- docker
|
- docker
|
||||||
install:
|
install:
|
||||||
- mkdir -p ${HOME}/ccache
|
- mkdir -p ${HOME}/ccache
|
||||||
- docker pull $DOCKER_BUILD_IMAGE
|
- docker pull $DOCKER_IMAGE
|
||||||
script:
|
script:
|
||||||
- echo "build..."
|
- echo "build..."
|
||||||
- docker run -v "$(pwd):/lbrycrd" -v "${HOME}/ccache:/ccache" -w /lbrycrd -e CCACHE_DIR=/ccache ${DOCKER_IMAGE} packaging/build_${NAME}_64bit.sh
|
- docker run -v "$(pwd):/lbrycrd" -v "${HOME}/ccache:/ccache" -w /lbrycrd -e CCACHE_DIR=/ccache ${DOCKER_IMAGE} packaging/build_${NAME}_64bit.sh
|
||||||
|
@ -56,11 +56,11 @@ jobs:
|
||||||
|
|
||||||
- <<: *build-template
|
- <<: *build-template
|
||||||
name: windows
|
name: windows
|
||||||
env: NAME=windows EXT=.exe
|
env: NAME=windows DOCKER_IMAGE=lbry/build_lbrycrd EXT=.exe
|
||||||
|
|
||||||
- <<: *build-template
|
- <<: *build-template
|
||||||
name: osx
|
name: osx
|
||||||
env: NAME=darwin EXT=
|
env: NAME=darwin DOCKER_IMAGE=lbry/build_lbrycrd EXT=
|
||||||
before_install:
|
before_install:
|
||||||
- mkdir -p ./depends/SDKs && pushd depends/SDKs && curl -C - ${MAC_OS_SDK} | tar --skip-old-files -xJ && popd
|
- mkdir -p ./depends/SDKs && pushd depends/SDKs && curl -C - ${MAC_OS_SDK} | tar --skip-old-files -xJ && popd
|
||||||
|
|
||||||
|
@ -86,8 +86,8 @@ jobs:
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- docker pull $DOCKER_WINE_IMAGE
|
- docker pull lbry/wine
|
||||||
- docker run -v "$(pwd):/test" -e "WINEDEBUG=-all" -e "TRIEHASH_FUZZER_BLOCKS=1000" -it $DOCKER_WINE_IMAGE wine "/test/test_lbrycrd.exe"
|
- docker run -v "$(pwd):/test" -e "WINEDEBUG=-all" -e "TRIEHASH_FUZZER_BLOCKS=1000" -it lbry/wine wine "/test/test_lbrycrd.exe"
|
||||||
|
|
||||||
- <<: *test-template
|
- <<: *test-template
|
||||||
os: osx
|
os: osx
|
||||||
|
|
28
packaging/docker-for-gcc/Dockerfile
Normal file
28
packaging/docker-for-gcc/Dockerfile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
FROM ubuntu:18.04
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
|
RUN set -xe; \
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install --no-install-recommends -y build-essential libtool autotools-dev automake pkg-config git wget apt-utils \
|
||||||
|
librsvg2-bin cmake libcap-dev libz-dev libbz2-dev python-setuptools python3-setuptools xz-utils ccache \
|
||||||
|
bsdmainutils curl ca-certificates; \
|
||||||
|
rm -rf /var/lib/apt/lists/*; \
|
||||||
|
/usr/sbin/update-ccache-symlinks;
|
||||||
|
|
||||||
|
ARG VCS_REF
|
||||||
|
ARG BUILD_DATE
|
||||||
|
LABEL maintainer="blockchain@lbry.com" \
|
||||||
|
decription="build_lbrycrd_gcc" \
|
||||||
|
version="1.2" \
|
||||||
|
org.label-schema.name="build_lbrycrd_gcc" \
|
||||||
|
org.label-schema.description="Use this to generate a reproducible build of LBRYcrd for Linux" \
|
||||||
|
org.label-schema.build-date=$BUILD_DATE \
|
||||||
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
|
org.label-schema.vcs-url="https://github.com/lbryio/lbrycrd" \
|
||||||
|
org.label-schema.schema-version="1.0.0-rc1" \
|
||||||
|
org.label-schema.vendor="LBRY" \
|
||||||
|
org.label-schema.docker.cmd="docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t lbry/build_lbrycrd_gcc packaging"
|
||||||
|
|
||||||
|
ENV PATH "/usr/lib/ccache:$PATH"
|
||||||
|
WORKDIR /home
|
||||||
|
CMD ["/bin/bash"]
|
Loading…
Reference in a new issue