-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (46 loc) · 2.97 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
sudo: required
services:
- docker
language: Python
# Use Travis-CI CLI to setup encrypted environment variables
# Docker friendly: http://hub.docker.com/r/ubergarm/travis-ci-cli
env:
global:
- DOCKER_EMAIL: [email protected]
- DOCKER_USERNAME: rowboat
- secure: K8IVz8EbP0ODzrlN6SoBjdbJRPGl6+dUF5YLG0T9kHRMbxRQlaPxiY/tkIOYhn770UKiYLXhb91149VjNa0ph/zxleMFbdjXZUgeFr9mjQeDMAi4X9xSv1dN1GFUYO3jz4yvOJqGc7qROY2pGaVsj+AOOweXVSI1F9jbn6SXaSsTUQB+3VC5vh+uNXKAEmctHB8JUlqO1ixg9V2uT3aLwu1hek6FaDFyluqMBawUbwzyxbMK1/LcnOU67ln4XCR/t+E06GTKVSJN95ZenGtCw+ML3mH7bNgGvmf5HtJo1MxnmG9f1FI6Qy7T1frGx41ImqlZ5jk5b+uVS0QGiYM68cGtCpwFjXxl7gzIMdayZFQoI0mzheAw+7Vd2eRiRMDCecVXEy7Oj9BxDKXHvmDdlkf9XHDOgnG4nNSHiUQ6a8eFdRnyscilGPQgHrvsOyKnvcizJ3hXDU9zxkHmQmbUfIvjy9gBJwlFDa4GFomiwct1qU0NAtZZ8QECWQOvXHAfvHbAT9bUP2eYU5LG6YZ7YPGsYpkooaWfrm1qsg3UA/n5KyDS3Yeq/6whpm91Jl70LbdT/TJegMX0sTf2R+538vEnmoaqsS1af6MCRhvYyY4KQH7PMvcIJrIhjEeKtHKrhiNYz0YThnIgE5vpaJ4uuJ0eYWhRwGqibPb/5qCucrI=OB
# turn off build email spam and turn slack on channel #github
notifications:
email: false
slack:
secure: oY3Mxu3LEgQaUjHr6bl3IbCU0KcA58EiGb2dDM/JzQyS0gi2GdoYYjCGdno2+y/cB51mMzigJ4GrR8YdfZlmhCDQz4r80ApvxDqkcXDcoBB4/5sI504Pz+pX4PEvaHXSo7Wv1191d59JCCNMwkpGlkYIShY8BmgQfPFL8fKTPV+mp597tg8EzjiUqyZ3iRNbD8kgqdGxAmijQswhaeI5F057Oh9kAXjsWRqUVO6wiQ5w/aPJPeEtWnLaH6WVtg3UMSIbuTs1DqZME7drn6kx8Dfcu+PUVFPEkuVO/7rnRPxMwQQSYuqw4m0GoJQJxpoFvInG12HB+7yirrBDjpoyz/L5xsw4F8XHJY55IAjDvbVLgLYffsEiI6ASQu4G42h7P1vGv7P9L/wdtmZcxFZrDf8T0nWNpat3bLnDfVF5hqs6LgzDOFiRydPhBajpJrU5m89nBL4dKZ/L6eKwiZ4JnfX9VBlLBCJDuxhNnwSJzb+USF33igcf91YwNB0PIsm8Idq8br0PiY8Rt555MaUBRnOV+q7eQCTy11OWMZylLKcM3BYdnQ2FXyeV2eqDt0h68EXjJha8U6eAEh+z5UkfzeZ3G+nEokJ6FLD/MGYngW3q/EPw943cnGHt++/E3RDsk2W7ytSeg+H2e3CvcC49i6DfhUqHeRwSvjYd8Day+NU=
# submodules
git:
submodules: true
# setup build machine
before_install:
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -y --no-install-recommends qemu-user-static binfmt-support cowsay
- PATH=$PATH:/usr/games
- sudo update-binfmts --display qemu-arm
# build code
install:
- docker pull rowboat/rowboat-base-images:1.0
# optional stuff here
before_script:
- cowsay -y System ready to build armhf Docker Images!
# test code
script:
- docker run --name newCont -it -v $TRAVIS_BUILD_DIR:/tmp/rowboat1 rowboat/rowboat-base-images:1.0 /bin/bash -c "source /opt/ros/indigo/setup.bash; cp -R /tmp/rowboat1 .; catkin build -v -i --force-cmake --no-jobserver --no-status --no-notify -w /root/rowboat1"
# Show some status
after_success:
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
- docker tag newCont rowboat/rowboat1-tested-build:$TRAVIS_BRANCH$TRAVIS_BUILD_NUMBER
- docker push rowboat/rowboat1-tested-build
- docker search rowboat/rowboat1-tested-build:$TRAVIS_BRANCH$TRAVIS_BUILD_NUMBER
- cowsay -s Build of $TRAVIS_REPO_SLUG:$TRAVIS_BRANCH success!
after_failure:
- cowsay -d Build of $TRAVIS_REPO_SLUG:$TRAVIS_BRANCH fails...
# Jobs Done
after_script:
- cowsay -g All ur CI are belongs to us!