-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
48 lines (45 loc) · 1.34 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
language: generic
branches:
only:
- master
env:
global:
- PSDS_CODECOVERAGE_RESULTFILE='psdsTestsCoverage'
jobs:
include:
- stage: VMware.PSDesiredStateConfigurationTests
os: linux
dist: bionic
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic main"
key_url: "https://packages.microsoft.com/keys/microsoft.asc"
packages:
- powershell
workspaces:
create:
name: coverageWorkspace
paths:
- psdsTestsCoverage
script:
- pwsh -File './Build/enableExperimentalFeature.ps1'
- pwsh -File './Build/VMware.PSDSCUnitTestsRunner.ps1'
- stage: Build
os: linux
dist: trusty
addons:
apt:
sources:
- sourceline: "deb [arch=amd64] https://packages.microsoft.com/ubuntu/14.04/prod trusty main"
key_url: "https://packages.microsoft.com/keys/microsoft.asc"
packages:
- powershell
workspaces:
use: coverageWorkspace
before_install:
- chmod +x Build/travis-push.sh
script:
- pwsh -File './Build/build.ps1'
after_success:
- '[ "${TRAVIS_EVENT_TYPE}" = "push" ] && [ "${TRAVIS_BRANCH}" = "master" ] && Build/travis-push.sh'