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

Change this variable when switching branch (and be... #157

Open
github-actions bot opened this issue Dec 20, 2020 · 0 comments
Open

Change this variable when switching branch (and be... #157

github-actions bot opened this issue Dec 20, 2020 · 0 comments
Labels

Comments

@github-actions
Copy link

Change this variable when switching branch (and before merging #148)

oss_branch: "v1.0.0-detector-improvements-1" # TODO: Change this variable when switching branch (and before merging #148)

# used to install 2Keys from the Open Source repo (useful for testing new feratures without publishing to PyPi)
# MUST RUN IN TANDEM WITH PROVISION.YML
---
- hosts: all
  vars:
    oss_branch: "v1.0.0-detector-improvements-1" # TODO: Change this variable when switching branch (and before merging #148)
    oss_root: /support
    oss_dirname: "{{ oss_root }}/twokeys"
    oss_python_location: "{{ oss_dirname }}/detectors/detector-pi/detector"
    oss_python_common_location: "{{ oss_dirname }}/detectors/common/python"
  tasks:
    - name: Update package index
      become: true
      apk:
        update_cache: yes
    - name: Install Git
      become: true
      apk:
        name: git
        state: present
    - name: Install Pipenv
      become: true
      pip:
        name: pipenv
    - name: Create source directory
      become: true
      file:
        path: "{{ oss_root }}" # We install all support sofwtare code here
        state: directory
    - name: Clone 2Keys
      become: true
      git:
        repo: "https://github.com/Gum-Joe/2Keys"
        dest: "{{ oss_dirname }}"
        version: "{{ oss_branch }}"
    
    - name: Install Dependencies for 2Keys Common 
      become: true
      command: "chdir={{ oss_python_common_location }} pipenv install --system --dev"
    - name: Install 2Keys Common
      become: true
      command: "chdir={{ oss_python_common_location }} pip install ."
  
    - name: Install 2Keys dependencies
      become: true
      command: "chdir={{ oss_python_location }} pipenv install --system --dev"
    - name: Install 2Keys
      become: true
      command: "chdir={{ oss_python_location }} pip install ."

    - name: Validate
      become: true
      command: 2Keys --help

8707dfcbeefdf8209083789e96c6f0c5f1e782d2

@github-actions github-actions bot added the todo label Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants