forked from envirover/SPLRadioRoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (51 loc) · 2.55 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
language: cpp
before_script:
# Install Raspbian toolchain
- mkdir -p /home/travis/build/toolchain/raspbian
- cd /home/travis/build/toolchain/raspbian
- wget https://s3.amazonaws.com/RTI/Community/ports/toolchains/raspbian-toolchain-gcc-4.7.2-linux64.tar.gz
- tar xf raspbian-toolchain-gcc-4.7.2-linux64.tar.gz
- export PATH=/home/travis/build/toolchain/raspbian/raspbian-toolchain-gcc-4.7.2-linux64/bin:$PATH
# Install Jetson toolchain
- mkdir -p /home/travis/build/toolchain/jetson
- cd /home/travis/build/toolchain/jetson
- wget https://envirover.s3-us-west-2.amazonaws.com/build/toolchains/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
- tar xf gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
- export PATH=/home/travis/build/toolchain/jetson/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin:$PATH
# switch to the src directory
- cd /home/travis/build/envirover/SPLRadioRoom
script:
# Build for Raspbian
- mkdir bin
- cd bin
- cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="../toolchain-arm-linux.cmake" -DBUILD_NUM=$TRAVIS_BUILD_NUMBER ..
- make
- cpack -G DEB
- export RASPBIAN_PKG_FILE=$(ls *.deb)
- cp $RASPBIAN_PKG_FILE /home/travis/build/
- cd ..
- rm -r bin
# Build for Jetson
- mkdir bin
- cd bin
- cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE:FILEPATH="../toolchain-jetson.cmake" -DBUILD_NUM=$TRAVIS_BUILD_NUMBER ..
- make
- cpack -G DEB
- export JETSON_PKG_FILE=$(ls *.deb)
- cp $JETSON_PKG_FILE /home/travis/build/
- cd ..
before_deploy:
- echo "Deploying $RASPBIAN_PKG_FILE and $JETSON_PKG_FILE to GitHub releases"
deploy:
provider: releases
name: "UV Radio Room build $TRAVIS_BUILD_NUMBER"
prerelease: true
api_key:
secure: jkOfxa7qoH3O50aJ12GFk4KBnwLHBAZvKG4Ka5x214ZEq1EV00ywuz1isN0qF+M2S1NJi0d/E58f4ndT1LQLgxcz3mcDcmo9v1EWFYEzfTL4o/BtV0IsrRy/pLg1t04QKHiy20kl8ViET293vBBla1yd72E04zlE6MjZMugifFdUoamHJkgMuY679JxE6o4KcXLxAwS3/lsrpCcdPEVj5DSuGUpyyGxKcoZW+cTTVc3zjBbjnLG9Hnle3zgIhC8hKHiCqy8uXtlgQN9m1E+P/Xn6LGAtO7Fa4Mlon9q1wbRXb+SRqG0sM8LmegORDHrFIvvuod0gCoIy1mbghnScAe9McUFeyVHQZ9ri7Xsb/G7fmpTAlPsf6EaKLm4m2gjXLec+W+thCPrtWUaoAdiq05d/ThP9mlOVbQ4A0O31oDSJJXctkb1OKgYrisBYY9dty4IKbVYkLA/+/QOi1EUAq9bspp77cUdhVx+MbrP3t982k/Ql8r3otmkIx4sbG404fnqxNauu5oe6zFgvratzOesYaL9p2dkkxCmzbY08pC1Uwn79GpTNMjvhNKVp6xi4AKR6+qDoMzXVZckpDrQnK/5yt4Fp4/5PRjGQhaayOx2vOLzZccOyiJLRZPgq3KAnSZRd4DnhzYFVPCuj91DLDo1jTsmgOj6rxjn1PHwguT8=
file_glob: true
file:
- "/home/travis/build/${RASPBIAN_PKG_FILE}"
- "/home/travis/build/${JETSON_PKG_FILE}"
on:
repo: envirover/SPLRadioRoom
skip_cleanup: true