-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (38 loc) · 1.36 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
sudo: required
dist: trusty
language: java
branches:
only:
- master
bundler_args: "--jobs 4"
jobs:
include:
- stage: build producer, consumer and visualization
script:
- cd flightdata-kafka-consumer
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test
- cd ..
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t consumer ./flightdata-kafka-consumer
- docker tag consumer $DOCKER_USERNAME/consumer
- docker push $DOCKER_USERNAME/consumer
- script:
- cd flightdata-kafka-producer
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mvn test
- cd ..
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t producer ./flightdata-kafka-producer
- docker tag producer $DOCKER_USERNAME/producer
- docker push $DOCKER_USERNAME/producer
- script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t visualization ./visualization
- docker tag visualization $DOCKER_USERNAME/visualization
- docker push $DOCKER_USERNAME/visualization
- script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t charts ./charts
- docker tag charts $DOCKER_USERNAME/charts
- docker push $DOCKER_USERNAME/charts