diff --git a/.circleci/config.yml b/.circleci/config.yml index f0ec92b46a3..da4099dc983 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/molecule/aws/tor_apt_test.yml b/molecule/aws/tor_apt_test.yml index 03d9b06c492..4497fc6d489 100644 --- a/molecule/aws/tor_apt_test.yml +++ b/molecule/aws/tor_apt_test.yml @@ -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"