-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 2.26 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
sudo: required
language: c
services:
- docker
branches:
only:
- master
- ipv6
before_install:
- pushd docker && docker build -t osv/builder -f ./Dockerfile.builder --build-arg DIST="ubuntu-19.10" . && popd
- docker run -it --privileged -d --name build osv/builder
stages:
- build_and_publish
env:
global:
- CIRP_GITHUB_REPO_SLUG="osvunikernel/osv-nightly-releases"
jobs:
include:
- stage: build_and_publish
script:
- docker exec build ./scripts/build clean
- docker exec build ./scripts/build-capstan-mpm-packages kernel
- docker exec build ./scripts/build-capstan-mpm-packages unit_tests
- docker exec build ./scripts/build-capstan-mpm-packages monitoring
- docker exec build ./scripts/osv-version.sh > /tmp/osv-version
- export ARTIFACTS_DIR="$(mktemp -d)"
- cp /tmp/osv-version "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/repository/osv-loader/osv-loader.qemu "$ARTIFACTS_DIR"
- gzip "$ARTIFACTS_DIR"/osv-loader.qemu
- docker cp build:/git-repos/osv/build/release/kernel-stripped.elf "$ARTIFACTS_DIR"/kernel.elf
- gzip "$ARTIFACTS_DIR"/kernel.elf
- docker cp build:/root/.capstan/repository/osv-loader/index.yaml "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.bootstrap.mpm "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.bootstrap.yaml "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.common-tests.mpm "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.common-tests.yaml "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.zfs-tests.mpm "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.zfs-tests.yaml "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.rofs-tests.mpm "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.rofs-tests.yaml "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.httpserver-monitoring-api.mpm "$ARTIFACTS_DIR"
- docker cp build:/root/.capstan/packages/osv.httpserver-monitoring-api.yaml "$ARTIFACTS_DIR"
- ./.travis/cirp/cleanup4.sh
- ./.travis/cirp/publish.sh "$ARTIFACTS_DIR" $(cat /tmp/osv-version)
- ./.travis/cirp/cleanup5.sh