Commit e7baa735 authored by zauberstuhl's avatar zauberstuhl
Browse files

Improve build performance by removing installation steps

parent 20826307
image: debian image: registry.git.feneas.org/feneas/federation/testsuite:latest
stages: stages:
- build - build
- test - test
...@@ -11,8 +11,6 @@ stages: ...@@ -11,8 +11,6 @@ stages:
junit: report.xml junit: report.xml
paths: paths:
- report.* - report.*
before_script:
- bash scripts/install.sh
script: script:
- bash scripts/test.sh - bash scripts/test.sh
...@@ -23,9 +21,6 @@ stages: ...@@ -23,9 +21,6 @@ stages:
build docker images: build docker images:
stage: build stage: build
before_script:
- apt-get update && apt-get install -y curl
- curl -L https://get.docker.com | bash -
script: script:
- bash scripts/build_docker_image.sh - bash scripts/build_docker_image.sh
only: only:
......
#!/bin/bash FROM debian
# install curl, git and the psql client # install curl, git and the psql client
apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
curl git-core postgresql-client libxml-generator-perl curl git-core postgresql-client libxml-generator-perl
# install docker binary # install docker binary
curl -L https://get.docker.com | bash - RUN curl -L https://get.docker.com | bash -
# install jq command line json parser # install jq command line json parser
curl -o /usr/local/bin/jq -L \ RUN curl -o /usr/local/bin/jq -L \
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
chmod +x /usr/local/bin/jq RUN chmod +x /usr/local/bin/jq
# install bats unit testing in bash # install bats unit testing in bash
git clone --depth 1 https://github.com/bats-core/bats-core.git RUN git clone --depth 1 https://github.com/bats-core/bats-core.git \
cd bats-core && ./install.sh /usr/local && cd - && cd bats-core \
&& ./install.sh /usr/local
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment