forked from retrage/frankenlibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (83 loc) · 2.88 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: c
cache: ccache
git:
submodules: false
stages:
- test
- downstream
jobs:
include:
- stage: test
os: linux
dist: xenial
sudo: required
compiler: clang
env:
- ARCH=amd64
- stage: test
os: linux
dist: xenial
sudo: required
compiler: gcc
env:
- ARCH=amd64
- stage: test
os: osx
osx_image: xcode10.1
compiler: clang
env: DEPLOY=skip
- ARCH=amd64
before_install:
- mkdir -p ~/.local/bin
- mkdir ~/junit
- export PATH=/usr/local/opt/ccache/libexec:$HOME/.local/bin:$PATH
- HOMEBREW_NO_AUTO_UPDATE=1 brew install gnu-sed ccache e2fsprogs
- HOMEBREW_NO_AUTO_UPDATE=1 brew install binutils
- pip install --user yamlish junit_xml
- ln -sf /usr/local/bin/gsed ~/.local/bin/sed
- ln -sf /usr/local/bin/gdate ~/.local/bin/date
- ln -sf /usr/local/opt/e2fsprogs/sbin/mkfs.ext4 ~/.local/bin/
- ln -sf /usr/local/opt/binutils/bin/objcopy ~/.local/bin/objcopy
- stage: test
os: osx
osx_image: xcode10.2
compiler: clang
env:
- ARCH=amd64
before_install:
- mkdir -p ~/.local/bin
- mkdir ~/junit
- export PATH=/usr/local/opt/ccache/libexec:$HOME/.local/bin:$PATH
- HOMEBREW_NO_AUTO_UPDATE=1 brew install gnu-sed ccache e2fsprogs
- HOMEBREW_NO_AUTO_UPDATE=1 brew install binutils
- pip install --user yamlish junit_xml
- ln -sf /usr/local/bin/gsed ~/.local/bin/sed
- ln -sf /usr/local/bin/gdate ~/.local/bin/date
- ln -sf /usr/local/opt/e2fsprogs/sbin/mkfs.ext4 ~/.local/bin/
- ln -sf /usr/local/opt/binutils/bin/objcopy ~/.local/bin/objcopy
- stage: test
os: linux
dist: xenial
sudo: required
compiler: arm-linux-gnueabihf-gcc
env:
- CC=arm-linux-gnueabihf-gcc
- PATH=/usr/lib/ccache/:$HOME/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/:$PATH
- ARCH=arm
before_install:
- git clone https://github.com/raspberrypi/tools $HOME/rpi-tools
- sudo ln -s `which ccache` /usr/lib/ccache/arm-linux-gnueabihf-gcc
- stage: downstream
before_script:
script: bash -ex ./.travis-trigger.sh ukontainer/rumprun-packages lkl-musl
os: linux
before_script:
- travis_wait 30 git submodule update --init llvm
- travis_wait 30 git submodule update --init --depth=50
script:
- sudo mkdir -p /opt/rump && sudo chown -R $USER /opt/
- for file in `find patches/ -maxdepth 1 -type f` ; do patch -p1 < $file ; done
- for file in `find patches/$TRAVIS_OS_NAME/ -maxdepth 1 -type f` ; do patch -p1 < $file ; done
- ./build.sh -d /opt/rump -q -k linux notest
- if [ $CC != "arm-linux-gnueabihf-gcc" ] ; then RUMPDIR=/opt/rump RUMPOBJ=`pwd`/rumpobj make -C tests run ; fi
- bash -ex ./.travis-deploy.sh $DEPLOY