-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathazure-pipelines.yml
51 lines (43 loc) · 1.49 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
- 2016-URNext
# The PAL unit tests have a dependency on the PST timezone
variables:
TZ: ':/usr/share/zoneinfo/America/Los_Angeles'
steps:
- script: |
sudo apt-get install pkg-config
sudo apt-get install libpam0g-dev
sudo apt-get install librpm-dev
sudo apt-get install libssl-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install rpm
sudo apt-get install time
sudo apt-get install selinux-policy-dev
- script: |
date
-
# /etc/hosts and /etc/resolv.conf not set up with domain as we expect
cp /etc/resolv.conf .
cat resolv.conf
DOMAIN=`grep search resolv.conf | cut -f2 -d\ `
echo "domain $DOMAIN" >> resolv.conf
cat resolv.conf
sudo mv resolv.conf /etc/resolv.conf
sudo chown root:root /etc/resolv.conf
# Fetch the Build-SCXcore repository for dependencies to build from
git config --global 'url.https://github.com/.insteadOf' '[email protected]:'
git clone --recursive 'https://github.com/Microsoft/Build-SCXcore.git' ../bld-scxcore
# Master branch for all submodules
cd ../bld-scxcore
git submodule foreach git checkout master
# Patch in the version of SCXcore that Travis gave to us
rm -rf opsmgr
cp -R SCXcore opsmgr
cd opsmgr/build
./configure
make all test