-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
55 lines (48 loc) · 1.24 KB
/
.travis.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
53
54
55
language: c
branches:
only:
- master
- 2016-URNext
dist: trusty
# The PAL unit tests have a dependency on the PST timezone
env:
- export TZ=':/usr/share/zoneinfo/America/Los_Angeles'
sudo: required
addons:
apt:
packages:
- pkg-config
- libpam0g-dev
- librpm-dev
- libssl-dev
- libcurl4-openssl-dev
- rpm
- time
- selinux-policy-dev
before_install:
- 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
script:
- cd opsmgr/build
- ./configure
- make all test