Skip to content

Commit

Permalink
Merge pull request #209 from serokell/rvem/v9.2-release
Browse files Browse the repository at this point in the history
v9.2 release
  • Loading branch information
rvem authored Jun 3, 2021
2 parents df94138 + a95e968 commit 4ff58e4
Show file tree
Hide file tree
Showing 32 changed files with 633 additions and 115 deletions.
106 changes: 53 additions & 53 deletions .buildkite/pipeline-raw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,59 +98,59 @@ steps:
# files from nix/ are massively used in tests ifrastructure
- nix/.*

- label: test deb source packages via docker
commands:
- eval "$SET_VERSION"
- ./docker/docker-tezos-packages.sh --os ubuntu --type source
artifact_paths:
- ./out/*
branches: "!master"
timeout_in_minutes: 60
agents:
queue: "docker"
only_changes: &native_packaging_changes_regexes
- docker/package/.*
- docker/docker-tezos-packages.sh
- meta.json
- protocols.json
- nix/nix/sources.json
- label: test deb binary packages via docker
commands:
- eval "$SET_VERSION"
# Building all binary packages will take significant amount of time, so we build only one
# in order to ensure package generation sanity
- ./docker/docker-tezos-packages.sh --os ubuntu --type binary --package tezos-baker-009-PsFLoren
- rm -rf out
# It takes much time to build binary package, so we do it only on master
branches: "master"
timeout_in_minutes: 90
agents:
queue: "docker"
only_changes: *native_packaging_changes_regexes
- label: test rpm source packages via docker
commands:
- eval "$SET_VERSION"
- ./docker/docker-tezos-packages.sh --os fedora --type source
artifact_paths:
- ./out/*
branches: "!master"
timeout_in_minutes: 60
agents:
queue: "docker"
only_changes: *native_packaging_changes_regexes
- label: test rpm binary packages via docker
commands:
- eval "$SET_VERSION"
# Building all binary packages will take significant amount of time, so we build only one
# in order to ensure package generation sanity
- ./docker/docker-tezos-packages.sh --os fedora --type binary --package tezos-baker-009-PsFLoren
- rm -rf out
# It takes much time to build binary package, so we do it only on master
branches: "master"
timeout_in_minutes: 90
agents:
queue: "docker"
only_changes: *native_packaging_changes_regexes
# - label: test deb source packages via docker
# commands:
# - eval "$SET_VERSION"
# - ./docker/docker-tezos-packages.sh --os ubuntu --type source
# artifact_paths:
# - ./out/*
# branches: "!master"
# timeout_in_minutes: 60
# agents:
# queue: "docker"
# only_changes: &native_packaging_changes_regexes
# - docker/package/.*
# - docker/docker-tezos-packages.sh
# - meta.json
# - protocols.json
# - nix/nix/sources.json
# - label: test deb binary packages via docker
# commands:
# - eval "$SET_VERSION"
# # Building all binary packages will take significant amount of time, so we build only one
# # in order to ensure package generation sanity
# - ./docker/docker-tezos-packages.sh --os ubuntu --type binary --package tezos-baker-009-PsFLoren
# - rm -rf out
# # It takes much time to build binary package, so we do it only on master
# branches: "master"
# timeout_in_minutes: 90
# agents:
# queue: "docker"
# only_changes: *native_packaging_changes_regexes
# - label: test rpm source packages via docker
# commands:
# - eval "$SET_VERSION"
# - ./docker/docker-tezos-packages.sh --os fedora --type source
# artifact_paths:
# - ./out/*
# branches: "!master"
# timeout_in_minutes: 60
# agents:
# queue: "docker"
# only_changes: *native_packaging_changes_regexes
# - label: test rpm binary packages via docker
# commands:
# - eval "$SET_VERSION"
# # Building all binary packages will take significant amount of time, so we build only one
# # in order to ensure package generation sanity
# - ./docker/docker-tezos-packages.sh --os fedora --type binary --package tezos-baker-009-PsFLoren
# - rm -rf out
# # It takes much time to build binary package, so we do it only on master
# branches: "master"
# timeout_in_minutes: 90
# agents:
# queue: "docker"
# only_changes: *native_packaging_changes_regexes

- label: create auto pre-release
commands:
Expand Down
6 changes: 2 additions & 4 deletions Formula/tezos-accuser-009-PsFLoren.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class << self
end
homepage "https://gitlab.com/tezos/tezos"

url "https://gitlab.com/tezos/tezos.git", :tag => "v9.1", :shallow => false
url "https://gitlab.com/tezos/tezos.git", :tag => "v9.2", :shallow => false

version "v9.1-1"
version "v9.2-1"

build_dependencies = %w[pkg-config autoconf rsync wget opam rustup-init]
build_dependencies.each do |dependency|
Expand All @@ -27,8 +27,6 @@ class << self

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser009Psfloren.version}/"
sha256 cellar: :any, mojave: "b9906f66690c90af6dd716e8981cfed7c1da72904c44f2720bb4d28ec23f2de8"
sha256 cellar: :any, catalina: "6c506d633967c3c5ad39deb483871e03f5218fad4508aab821546a5395f9a5b8"
end

def make_deps
Expand Down
114 changes: 114 additions & 0 deletions Formula/tezos-accuser-010-PtGRANAD.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# SPDX-FileCopyrightText: 2021 TQ Tezos <https://tqtezos.com/>
#
# SPDX-License-Identifier: LicenseRef-MIT-TQ

class TezosAccuser010Ptgranad < Formula
@all_bins = []

class << self
attr_accessor :all_bins
end
homepage "https://gitlab.com/tezos/tezos"

url "https://gitlab.com/tezos/tezos.git", :tag => "v9.2", :shallow => false

version "v9.2-1"

build_dependencies = %w[pkg-config autoconf rsync wget opam rustup-init]
build_dependencies.each do |dependency|
depends_on dependency => :build
end

dependencies = %w[gmp hidapi libev libffi]
dependencies.each do |dependency|
depends_on dependency
end
desc "Daemon for accusing"

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosAccuser010Ptgranad.version}/"
end

def make_deps
ENV.deparallelize
ENV["CARGO_HOME"]="./.cargo"
system "rustup-init", "--default-toolchain", "1.44.0", "-y"
system "opam", "init", "--bare", "--debug", "--auto-setup", "--disable-sandboxing"
system ["source .cargo/env", "make build-deps"].join(" && ")
end

def install_template(dune_path, exec_path, name)
bin.mkpath
self.class.all_bins << name
system ["eval $(opam env)", "dune build #{dune_path}", "cp #{exec_path} #{name}"].join(" && ")
bin.install name
end

def install
startup_contents =
<<~EOS
#!/usr/bin/env bash
set -euo pipefail
accuser="#{bin}/tezos-accuser-010-PtGRANAD"
accuser_dir="$DATA_DIR"
accuser_config="$accuser_dir/config"
mkdir -p "$accuser_dir"
if [ ! -f "$accuser_config" ]; then
"$accuser" --base-dir "$accuser_dir" \
--endpoint "$NODE_RPC_ENDPOINT" \
config init --output "$accuser_config" >/dev/null 2>&1
else
"$accuser" --base-dir "$accuser_dir" \
--endpoint "$NODE_RPC_ENDPOINT" \
config update >/dev/null 2>&1
fi
exec "$accuser" --base-dir "$accuser_dir" \
--endpoint "$NODE_RPC_ENDPOINT" \
run
EOS
File.write("tezos-accuser-010-PtGRANAD-start", startup_contents)
bin.install "tezos-accuser-010-PtGRANAD-start"
make_deps
install_template "src/proto_010_PtGRANAD/bin_accuser/main_accuser_010_PtGRANAD.exe",
"_build/default/src/proto_010_PtGRANAD/bin_accuser/main_accuser_010_PtGRANAD.exe",
"tezos-accuser-010-PtGRANAD"
end

plist_options manual: "tezos-accuser-010-PtGRANAD run"
def plist
<<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>Program</key>
<string>#{opt_bin}/tezos-accuser-010-PtGRANAD-start</string>
<key>EnvironmentVariables</key>
<dict>
<key>DATA_DIR</key>
<string>#{var}/lib/tezos/client</string>
<key>NODE_RPC_ENDPOINT</key>
<string>http://localhost:8732</string>
</dict>
<key>RunAtLoad</key><true/>
<key>StandardOutPath</key>
<string>#{var}/log/#{name}.log</string>
<key>StandardErrorPath</key>
<string>#{var}/log/#{name}.log</string>
</dict>
</plist>
EOS
end
def post_install
mkdir "#{var}/lib/tezos/client"
end
end
6 changes: 2 additions & 4 deletions Formula/tezos-admin-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class << self
end
homepage "https://gitlab.com/tezos/tezos"

url "https://gitlab.com/tezos/tezos.git", :tag => "v9.1", :shallow => false
url "https://gitlab.com/tezos/tezos.git", :tag => "v9.2", :shallow => false

version "v9.1-1"
version "v9.2-1"

build_dependencies = %w[pkg-config autoconf rsync wget opam rustup-init]
build_dependencies.each do |dependency|
Expand All @@ -27,8 +27,6 @@ class << self

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosAdminClient.version}/"
sha256 cellar: :any, mojave: "373c146b8989d8937154da0cca4c3cab51088ac5c3becf7a045e062a9aaaa370"
sha256 cellar: :any, catalina: "28a92df0b2b152eb60b488dd3cc912dd96215eaa696eceb7b269041d63c93c1a"
end

def make_deps
Expand Down
6 changes: 2 additions & 4 deletions Formula/tezos-baker-009-PsFLoren.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class << self
end
homepage "https://gitlab.com/tezos/tezos"

url "https://gitlab.com/tezos/tezos.git", :tag => "v9.1", :shallow => false
url "https://gitlab.com/tezos/tezos.git", :tag => "v9.2", :shallow => false

version "v9.1-1"
version "v9.2-1"

build_dependencies = %w[pkg-config autoconf rsync wget opam rustup-init]
build_dependencies.each do |dependency|
Expand All @@ -27,8 +27,6 @@ class << self

bottle do
root_url "https://github.com/serokell/tezos-packaging/releases/download/#{TezosBaker009Psfloren.version}/"
sha256 cellar: :any, mojave: "8f317703aff2a8612c40dc1c224598486d964dbf57003b70c1c535dfc195325c"
sha256 cellar: :any, catalina: "8825c66454aa26641e101dde3a505195182afd87b0d72831ed10dd5c7124ad5e"
end

def make_deps
Expand Down
Loading

0 comments on commit 4ff58e4

Please sign in to comment.