Merge pull request #1632 from ephiepark/dev
CircleCI : use custom Docker Image with pre-installed dependencies
This commit is contained in:
commit
c0eb6c9c81
@ -1,33 +1,14 @@
|
|||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
references:
|
|
||||||
# Install the dependencies required for tests.
|
|
||||||
# Add the step "- *install-dependencies" to the beginning of your job to run
|
|
||||||
# this command.
|
|
||||||
install-dependencies: &install-dependencies
|
|
||||||
run:
|
|
||||||
name: Install dependencies
|
|
||||||
# TODO: We can split these dependencies up by job to reduce installation
|
|
||||||
# time.
|
|
||||||
command: |
|
|
||||||
sudo dpkg --add-architecture i386
|
|
||||||
sudo apt-get -y -qq update
|
|
||||||
sudo apt-get -y install \
|
|
||||||
gcc-multilib-powerpc-linux-gnu gcc-arm-linux-gnueabi \
|
|
||||||
libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
|
|
||||||
libc6-dev-ppc64-powerpc-cross zstd gzip coreutils \
|
|
||||||
libcurl4-openssl-dev
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# the first half of the jobs are in this test
|
# the first half of the jobs are in this test
|
||||||
short-tests-0:
|
short-tests-0:
|
||||||
# TODO: Create a small custom docker image with all the dependencies we need
|
# TODO: Create a small custom docker image with all the dependencies we need
|
||||||
# preinstalled to reduce installation time.
|
# preinstalled to reduce installation time.
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps:bionic
|
- image: fbopensource/zstd-circleci-primary:0.0.1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- *install-dependencies
|
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: |
|
command: |
|
||||||
@ -41,10 +22,9 @@ jobs:
|
|||||||
# the second half of the jobs are in this test
|
# the second half of the jobs are in this test
|
||||||
short-tests-1:
|
short-tests-1:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps:bionic
|
- image: fbopensource/zstd-circleci-primary:0.0.1
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- *install-dependencies
|
|
||||||
- run:
|
- run:
|
||||||
name: Test
|
name: Test
|
||||||
command: |
|
command: |
|
||||||
@ -61,12 +41,11 @@ jobs:
|
|||||||
# tagged release.
|
# tagged release.
|
||||||
publish-github-release:
|
publish-github-release:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps:bionic
|
- image: fbopensource/zstd-circleci-primary:0.0.1
|
||||||
environment:
|
environment:
|
||||||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- *install-dependencies
|
|
||||||
- run:
|
- run:
|
||||||
name: Publish
|
name: Publish
|
||||||
command: |
|
command: |
|
||||||
@ -86,12 +65,11 @@ jobs:
|
|||||||
# This step should only be run in a cron job
|
# This step should only be run in a cron job
|
||||||
regression-test:
|
regression-test:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/buildpack-deps:bionic
|
- image: fbopensource/zstd-circleci-primary:0.0.1
|
||||||
environment:
|
environment:
|
||||||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- *install-dependencies
|
|
||||||
# Restore the cached resources.
|
# Restore the cached resources.
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
# We try our best to bust the cache when the data changes by hashing
|
# We try our best to bust the cache when the data changes by hashing
|
||||||
|
9
.circleci/images/primary/Dockerfile
Normal file
9
.circleci/images/primary/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM circleci/buildpack-deps:bionic
|
||||||
|
|
||||||
|
RUN sudo dpkg --add-architecture i386
|
||||||
|
RUN sudo apt-get -y -qq update
|
||||||
|
RUN sudo apt-get -y install \
|
||||||
|
gcc-multilib-powerpc-linux-gnu gcc-arm-linux-gnueabi \
|
||||||
|
libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross \
|
||||||
|
libc6-dev-ppc64-powerpc-cross zstd gzip coreutils \
|
||||||
|
libcurl4-openssl-dev
|
Loading…
Reference in New Issue
Block a user