Skip to content

psake on Linux #262

@dermeister0

Description

@dermeister0

Here's a small instruction how to use psake on Linux.

I used Ansible to do the actions above. Tested on Ubuntu Server 18.04 and CentOS 7.

- hosts: buildserver

  roles:
    - brentwg.powershell

  vars:
    ansible_become: true

  tasks:
    - name: Clone psake repository
      git:
        repo: 'https://github.com/psake/psake'
        dest: /opt/psake
    - name: Create psake wrapper
      copy:
        content: |
          #!/usr/bin/env sh
          pwsh -Command "& /opt/psake/src/psake.ps1 $@; if (\$psake.build_success -eq \$false) { exit 1 } else { exit 0 }"
        dest: /usr/bin/psake
        mode: 0755

  pre_tasks:
    - name: Enable Universe repository
      apt_repository:
        repo: deb http://archive.ubuntu.com/ubuntu bionic universe
      become: yes
      when: ansible_os_family == 'Debian'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions