forked from c4ev3/EV3-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (55 loc) · 2.45 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
language: c
dist: trusty
os: linux
sudo: fals
addons:
apt:
packages:
- doxygen
- libc6-i386
before_install:
- wget -c http://www.codesourcery.com/sgpp/lite/arm/portal/package4571/public/arm-none-linux-gnueabi/arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
- tar xjf arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
- export PATH="$PWD/arm-2009q1/bin:$PATH"
- wget https://github.com/c4ev3/C4EV3.Toolchain/releases/download/C4EV3.Toolchain-2019.08.0/C4EV3.Toolchain-v2019.08.0-arm-c4ev3-linux-uclibceabi-gcc-8.2.1-uclibc-ng-1.0.31-binutils-2.31.1-kernel-2.6.33-rc4-sanitized_linux-amd64.tar.xz
- tar xf C4EV3.Toolchain-v2019.08.0-arm-c4ev3-linux-uclibceabi-gcc-8.2.1-uclibc-ng-1.0.31-binutils-2.31.1-kernel-2.6.33-rc4-sanitized_linux-amd64.tar.xz
- export PATH="$PWD/C4EV3.Toolchain-2019.08.0/arm-c4ev3-linux-uclibceabi/gcc-8.2.1-uclibc-ng-1.0.31-binutils-2.31.1-kernel-2.6.33-rc4-sanitized/bin:$PATH"
#
#before_script:
# - make PREFIX=arm-none-linux-gnueabi- example
# - nm -g libev3api.a | tee symbols.before
# - grep EV3IsInitialized symbols.before || (echo "libev3api.a doesn't contain symbols! Aborting..." && false)
#
script:
# build documentation
- doxygen Doxyfile
# build using glibx
- make PREFIX=arm-none-linux-gnueabi- CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-pointer-sign -fdata-sections -ffunction-sections"
- mkdir -p release/lib/glibc && mv libev3api.a release/lib/glibc/libev3api.a
# build also using uclibc
- make clean
- make PREFIX=arm-c4ev3-linux-uclibceabi- CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wno-pointer-sign -fdata-sections -ffunction-sections"
- mkdir release/lib/uclibc && mv libev3api.a release/lib/uclibc/libev3api.a
# prepare release zip
- cp -r include release
- mv release c4ev3-$TRAVIS_TAG && zip -r c4ev3.zip c4ev3-$TRAVIS_TAG
deploy:
- provider: pages
skip_cleanup: true
local_dir: doxy_out/html
github_token: $GH_REPO_TOKEN
on:
branch: master
- provider: releases
api_key: $GH_REPO_TOKEN
file: "c4ev3.zip"
skip_cleanup: true
on:
tags: true
#after_script:
# - make PREFIX=arm-none-linux-gnueabi- CFLAGS="-Os -Wl,--gc-sections" example
# - nm -g libev3api.a | tee symbols.after
# - grep InitEV3 symbols.after || (echo "libev3api.a doesn't contain symbols! Aborting..." && false)
# - nm -g a.out
# - nm -g a.out | grep InitEV3 || (echo "The InitEV3 constructor has not been included!! Aborting..." && false)
#