-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
52 lines (44 loc) · 1.27 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
trigger:
- master
pr:
- master
- releases/*
pool:
vmImage: 'ubuntu-latest'
variables:
GOPATH: '$(system.defaultWorkingDirectory)/gopath'
steps:
- task: GoTool@0
inputs:
version: '1.13.5'
- script: |
sudo apt update
sudo apt install docker.io
sudo usermod -a -G docker $USER
sudo systemctl unmask docker
sudo systemctl start docker
displayName: 'Set up the Docker workspace'
workingDirectory: '$(System.DefaultWorkingDirectory)'
- script: |
mkdir ~/.beast
cp _examples/example.config.toml ~/.beast/config.toml
touch ~/.beast/secret.key
touch ~/.beast/authorized_keys
mkdir ~/.beast/staging
mkdir ~/.beast/remote
mkdir ~/.beast/scripts
displayName: 'Setup Beast Global Directory'
- script: |
make build
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Build Beast'
- script: |
make requirements
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Build Requirements'
- script: |
echo -ne "ssh-rsa AAAAB3NzaC1y" > pub.key
$GOPATH/bin/beast create-author --name fristonio --email [email protected] --publickey pub.key -v --username fristonio --password pass123
make test
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Run tests'