-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
55 lines (45 loc) · 2.56 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
sudo: required
services:
- docker
language: cpp
env:
global:
- COMPOSE_VERSION: 1.22.0
- CONTAINER_RELEASE_IMAGE: bitbots/bitbots-domestic:$TRAVIS_BRANCH
before_install:
- sudo pip install --upgrade pip
- sudo rm /usr/local/bin/docker-compose
- sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose -v
stages:
- build
- test
- name: deploy
if: (branch IN (devel, indigo, kinetic, melodic) AND type != "pull_request") OR tag = true
jobs:
include:
- stage: build
script:
- docker-compose build travis
- stage: test
if: fork = false
name: "Sonarcloud.io"
script:
- sonar-scanner
- stage: deploy
name: "Docker Hub"
skip_cleanup: true
script:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- docker build -t $CONTAINER_RELEASE_IMAGE .
- docker images
- travis_wait docker push $CONTAINER_RELEASE_IMAGE
notifications:
slack:
secure: RUiplbRX8scnvplFZhBIvSJxPDs/qCcBiMmSZnocILQsHrZMCIhv0eNoAT6FWIkXpJbS4l56BFbSdZH25/qNl/cdNwbn/YCc4N4fketeYduLcWNpwOfbf41vjFIXEbzo6wboFjlIPJDZgQFbtMThoJ2Gx6J2nBLB719j4Skj5C58yx6/ScioXZZ1LIXEE1aeOwRnju+OqX/o0dvUNrnP+6XnMtuYSicml10JV5tj3r9IJQuSAD6Bv0l/2eMparJ5UboRMwtCy5GVLfetky6WARmESJP+bKhvYE1+FR3AdRmzA47rmE+c7fZzyybSRKeUlhWPUVatTLbWxpB4ivXxKfRWqe1RiYUIAQz8U2EhWgiuR47/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