2018-04-05 05:50:38 +08:00
|
|
|
sudo: required
|
|
|
|
|
2018-03-21 06:10:50 +08:00
|
|
|
language: c
|
2018-04-05 05:50:38 +08:00
|
|
|
|
2018-04-04 21:45:34 +08:00
|
|
|
env:
|
|
|
|
global:
|
2018-04-05 04:43:37 +08:00
|
|
|
- OS_TESTED_CL="clearlinux"
|
|
|
|
- OS_TESTED_UBUNTU="ubuntu16.04"
|
2018-05-29 04:27:43 +08:00
|
|
|
- OS_TESTED_FEDORA="fedora28"
|
2018-04-04 21:45:34 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
- RELEASE=0
|
|
|
|
PLATFORM=sbl
|
|
|
|
|
|
|
|
- RELEASE=1
|
|
|
|
PLATFORM=sbl
|
|
|
|
|
|
|
|
- RELEASE=0
|
|
|
|
PLATFORM=uefi
|
|
|
|
|
|
|
|
- RELEASE=1
|
|
|
|
PLATFORM=uefi
|
|
|
|
|
2018-04-05 05:50:38 +08:00
|
|
|
services:
|
2018-04-04 21:45:34 +08:00
|
|
|
- docker
|
2018-04-05 05:50:38 +08:00
|
|
|
|
|
|
|
before_install:
|
2018-04-05 04:43:37 +08:00
|
|
|
- docker build -t ${OS_TESTED_CL} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_CL} .
|
|
|
|
- docker build -t ${OS_TESTED_UBUNTU} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_UBUNTU} .
|
|
|
|
- docker build -t ${OS_TESTED_FEDORA} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_FEDORA} .
|
2018-04-04 21:45:34 +08:00
|
|
|
- docker images
|
|
|
|
|
|
|
|
install: true
|
2018-04-05 05:50:38 +08:00
|
|
|
|
|
|
|
script:
|
2018-04-05 04:43:37 +08:00
|
|
|
- docker run -v $PWD:/root/acrn ${OS_TESTED_CL} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|
|
|
|
- docker run -v $PWD:/root/acrn ${OS_TESTED_UBUNTU} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|
|
|
|
- docker run -v $PWD:/root/acrn ${OS_TESTED_FEDORA} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|