Skip to content

Commit

Permalink
CI grab back tor_version string
Browse files Browse the repository at this point in the history
Useful for debugging
  • Loading branch information
msheiny committed Jan 29, 2018
1 parent f914e92 commit e4e12a5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:
- store_artifacts:
path: ~/test-results

- store_artifacts:
path: ~/.tor_version

staging-test-with-rebase:
docker:
- image: quay.io/freedomofpress/circleci-docker:latest
Expand Down
17 changes: 17 additions & 0 deletions molecule/aws/tor_apt_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,20 @@
regexp: '//tor-apt\.freedom\.press'
ignore_errors: "yes"
notify: update tor

- name: Force possible tor update
meta: flush_handlers

- name: Extract latest tor version
shell: |
apt-cache policy tor | sed -e 's/^\s*Installed:\ \(\S*\)/\1/g;tx;d;:x'
changed_when: false
register: extract_tor_version

- name: Dump Tor version to file (for reporting)
copy:
dest: "{{ playbook_dir }}/../../.tor_version"
content: "{{ extract_tor_version.stdout }}"
delegate_to: localhost
run_once: true
become: "no"

0 comments on commit e4e12a5

Please sign in to comment.