Update git tasks, vars, task descriptions + README

Don't use depth: 1 or ignore_errors in git tasks.
Commit history is nice, and since you can't do most things without the
repositories, we should fail closed upon errors.
Creates variable for 'gitian_builder_url', so we can switch out @ageis's fork
with the official @devrandom repo once a pending pull request is merged.
Changes default zcash_version to 'master' in defaults/main.yml.
This commit is contained in:
Kevin Gallagher 2016-10-16 23:08:43 -07:00
parent 4c20410fd8
commit 191f52ed3e
3 changed files with 7 additions and 12 deletions

View File

@ -56,7 +56,7 @@ Building Zcash
vagrant ssh zcash-build
./gitian-build.sh
The output from `gbuild` is informative. There are some common warnings which can be ignored, e.g. if you get a privileges error related to LXC then just execute the script again. The most important thing is that one reaches the step which says `Running build script (log in var/build.log)`. If not, then something else is wrong and you should let us know.
The output from `gbuild` is informative. There are some common warnings which can be ignored, e.g. if you get an intermittent privileges error related to LXC then just execute the script again. The most important thing is that one reaches the step which says `Running build script (log in var/build.log)`. If not, then something else is wrong and you should let us know.
Take a look at the variables near the top of `~/gitian-build.sh` and get familiar with its functioning, as it can handle most tasks.

View File

@ -3,8 +3,9 @@ gitian_user: vagrant
download_directory: /tmp/gitian
vm_builder_name: 'vm-builder-0.12.4+bzr494'
vm_builder_url: 'http://archive.ubuntu.com/ubuntu/pool/universe/v/vm-builder/vm-builder_0.12.4+bzr494.orig.tar.gz'
gitian_builder_url: https://github.com/ageis/gitian-builder
zcash_git_repo_url: https://github.com/zcash/zcash
zcash_gitian_sigs_repo: https://github.com/zcash/gitian.sigs
zcash_version: v1.0.0-beta2
zcash_version: master
gitian_host_ip: 10.0.2.15
lxc_guest_ip: 10.0.3.5

View File

@ -10,7 +10,7 @@
- "git_email != ''"
msg: Please set your gpg_key_name, git_name and git_email in gitian.yml.
- name: Install Gitian build dependencies.
- name: Install Gitian dependencies.
apt:
name: "{{ item }}"
state: present
@ -122,12 +122,10 @@
- name: Clone git repository for Gitian builder.
git:
repo: "https://github.com/ageis/gitian-builder"
repo: "{{ gitian_builder_url }}"
dest: "/home/{{ gitian_user }}/gitian-builder"
version: "master"
force: yes
depth: 1
ignore_errors: yes
become_user: "{{ gitian_user }}"
- name: Clone git repository for Zcash.
@ -136,8 +134,6 @@
dest: "/home/{{ gitian_user }}/zcash"
version: "{{ zcash_version }}"
force: yes
depth: 1
ignore_errors: yes
become_user: "{{ gitian_user }}"
- name: Clone git repository for Gitian signatures.
@ -146,8 +142,6 @@
dest: "/home/{{ gitian_user }}/gitian.sigs"
version: master
force: yes
depth: 1
ignore_errors: yes
become_user: "{{ gitian_user }}"
- name: Reboot.
@ -170,7 +164,7 @@
state=started
become: no
- name: Wait extra time for server to come back up.
- name: Wait extra time for VM to come back up.
pause:
seconds: 10
@ -220,4 +214,4 @@
msg: >-
Finished bootstrapping the Gitian host VM!
To enter the environment, run `vagrant ssh zcash-build`
And then use `./gitian-build.sh` to kick off a build.
and then use `./gitian-build.sh` to kick off a build.