-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
71 lines (69 loc) · 2.52 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
sudo: required
language: cpp
distro: trusty
addons:
apt:
sources:
- llvm-toolchain-trusty-4.0
- sourceline: 'deb http://nuxi.nl/distfiles/cloudabi-ports/debian/ cloudabi cloudabi'
key_url: 'https://keys.fedoraproject.org/pks/lookup?op=get&search=0x0DA51B8531344B15'
packages:
- clang-4.0
- lld-4.0
- qemu-system-x86
- qemu-utils
- i686-unknown-cloudabi-cxx-runtime
- i686-unknown-cloudabi-libircclient
- i686-unknown-cloudabi-mstd
- i686-unknown-cloudabi-python
- i686-unknown-cloudabi-flower
- python3-pip
- genext2fs
notifications:
irc:
channels:
- irc.efnet.org#cosix
template:
- "%{repository}/%{branch} (%{commit} - %{author}): %{build_url}: %{message}"
matrix:
include:
# Unit tests running on host
- env:
- CMAKE_ARGS="-DCMAKE_C_COMPILER=clang-4.0 -DCMAKE_CXX_COMPILER=clang++-4.0"
- RUN_TESTS="host"
# Userland tests running in qemu
- env:
- CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-i686-elf.cmake"
- RUN_TESTS="userland"
before_install:
# install i686-unknown-cloudabi links
- sudo ln -s ld /usr/bin/i686-elf-ld
- sudo ln -s llvm-ar /usr/bin/i686-unknown-cloudabi-ar
- sudo ln -s llvm-nm /usr/bin/i686-unknown-cloudabi-nm
- sudo ln -s llvm-objdump /usr/bin/i686-unknown-cloudabi-objdump
- sudo ln -s llvm-ranlib /usr/bin/i686-unknown-cloudabi-ranlib
- sudo ln -s llvm-size /usr/bin/i686-unknown-cloudabi-size
- sudo ln -s ../lib/llvm-4.0/bin/lld /usr/bin/i686-unknown-cloudabi-ld
- sudo ln -s ../lib/llvm-4.0/bin/clang /usr/bin/i686-unknown-cloudabi-cc
- sudo ln -s ../lib/llvm-4.0/bin/clang /usr/bin/i686-unknown-cloudabi-c++
- sudo ln -s ../../i686-unknown-cloudabi /usr/lib/llvm-4.0/i686-unknown-cloudabi
# install a recent enough version of cmake (need 3.8+)
- wget -Ocmake.sh https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.sh
- chmod +x cmake.sh
- sudo ./cmake.sh --prefix=/usr --skip-license
- cmake --version
# install aprotoc
- wget -Oaprotoc https://raw.githubusercontent.com/NuxiNL/arpc/master/scripts/aprotoc.py
- chmod +x aprotoc
- sudo mv aprotoc /usr/bin
- sudo pip3 install pypeg2
- sudo pip3 install toposort
before_script:
- mkdir build && cd build
script:
- cmake ${CMAKE_ARGS} -DCMAKE_BUILD_TYPE=Debug ..
- make VERBOSE=1
- if [ "${RUN_TESTS}" == "host" ]; then env CTEST_OUTPUT_ON_FAILURE=1 make test; fi
# TODO: run kernel in qemu with serial output, see if it still boots
# TODO: run userland test suite
# TODO: run cloudabi unit test suite