Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Mac builds form Linux builds #84

Merged
1 commit merged into from
Apr 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
383 changes: 383 additions & 0 deletions .buildkite/pipeline_linux_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,383 @@
steps:
- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":ubuntu: Build"
agents:
queue: "automation-large-builder-fleet"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu"
workdir: /data/job
timeout: 60

- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":ubuntu: 18.04 Build"
agents:
queue: "automation-large-builder-fleet"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
timeout: 60

- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":fedora: Build"
agents:
queue: "automation-large-builder-fleet"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.4.0:
image: "eosio/ci:fedora"
workdir: /data/job
timeout: 60

- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":centos: Build"
agents:
queue: "automation-large-builder-fleet"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.4.0:
image: "eosio/ci:centos"
workdir: /data/job
timeout: 60

- command: |
echo "+++ :hammer: Building" && \
echo 1 | ./eosio_build.sh && \
echo "--- :compression: Compressing build directory" && \
tar -pczf build.tar.gz build/
label: ":aws: Build"
agents:
queue: "automation-large-builder-fleet"
artifact_paths: "build.tar.gz"
plugins:
docker#v1.4.0:
image: "eosio/ci:amazonlinux"
workdir: /data/job
timeout: 60

- wait

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -j8 -LE _tests --output-on-failure
label: ":ubuntu: Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -L nonparallelizable_tests --output-on-failure
label: ":ubuntu: NP Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -j8 -LE _tests --output-on-failure
label: ":ubuntu: 18.04 Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -L nonparallelizable_tests --output-on-failure
label: ":ubuntu: 18.04 NP Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -j8 -LE _tests --output-on-failure
label: ":fedora: Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:fedora"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -L nonparallelizable_tests --output-on-failure
label: ":fedora: NP Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:fedora"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":centos: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -j8 -LE _tests --output-on-failure
label: ":centos: Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:centos"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":centos: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -L nonparallelizable_tests --output-on-failure
label: ":centos: NP Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:centos"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":aws: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -j8 -LE _tests --output-on-failure
label: ":aws: Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:amazonlinux"
workdir: /data/job
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":aws: Build" && \
tar -zxf build.tar.gz && \
echo "--- :m: Starting MongoDB" && \
$(which mongod) --fork --logpath "$(pwd)"/mongod.log && \
echo "+++ :microscope: Running tests" && \
cd /data/job/build && ctest -L nonparallelizable_tests --output-on-failure
label: ":aws: NP Tests"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "mongod.log"
- "build/genesis.json"
- "build/config.ini"
plugins:
docker#v1.4.0:
image: "eosio/ci:amazonlinux"
workdir: /data/job
timeout: 60

- wait

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: Build" && \
tar -zxf build.tar.gz && \
echo "+++ :microscope: Starting package build" && \
cd /data/job/build/packages && bash generate_package.sh deb
label: ":ubuntu: Package builder"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build/packages/*.deb"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu"
workdir: /data/job
env:
OS: "ubuntu-16.04"
PKGTYPE: "deb"
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":ubuntu: 18.04 Build" && \
tar -zxf build.tar.gz && \
echo "+++ :microscope: Starting package build" && \
cd /data/job/build/packages && bash generate_package.sh deb
label: ":ubuntu: 18.04 Package builder"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build/packages/*.deb"
plugins:
docker#v1.4.0:
image: "eosio/ci:ubuntu18"
workdir: /data/job
env:
OS: "ubuntu-18.04"
PKGTYPE: "deb"
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":fedora: Build" && \
tar -zxf build.tar.gz && \
echo "+++ :microscope: Starting package build" && \
yum install -y rpm-build && \
mkdir -p /root/rpmbuild/BUILD && \
mkdir -p /root/rpmbuild/BUILDROOT && \
mkdir -p /root/rpmbuild/RPMS && \
mkdir -p /root/rpmbuild/SOURCES && \
mkdir -p /root/rpmbuild/SPECS && \
mkdir -p /root/rpmbuild/SRPMS && \
cd /data/job/build/packages && bash generate_package.sh rpm
label: ":fedora: Package builder"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build/packages/x86_64/*.rpm"
plugins:
docker#v1.4.0:
image: "eosio/ci:fedora"
workdir: /data/job
env:
OS: "fc27"
PKGTYPE: "rpm"
timeout: 60

- command: |
echo "--- :arrow_down: Downloading build directory" && \
buildkite-agent artifact download "build.tar.gz" . --step ":centos: Build" && \
tar -zxf build.tar.gz && \
echo "+++ :microscope: Starting package build" && \
yum install -y rpm-build && \
mkdir -p /root/rpmbuild/BUILD && \
mkdir -p /root/rpmbuild/BUILDROOT && \
mkdir -p /root/rpmbuild/RPMS && \
mkdir -p /root/rpmbuild/SOURCES && \
mkdir -p /root/rpmbuild/SPECS && \
mkdir -p /root/rpmbuild/SRPMS && \
cd /data/job/build/packages && bash generate_package.sh rpm
label: ":centos: Package builder"
agents:
queue: "automation-large-builder-fleet"
artifact_paths:
- "build/packages/x86_64/*.rpm"
plugins:
docker#v1.4.0:
image: "eosio/ci:centos"
workdir: /data/job
env:
OS: "el7"
PKGTYPE: "rpm"
timeout: 60
Loading