forked from voiceip/oreka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (49 loc) · 1.93 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
sudo: true
os: linux
dist: xenial
addons:
apt:
packages:
- docker-ce
- tree
services:
- docker
branches:
only:
- master
# Ruby regex to match tags. Required, or travis won't trigger deploys when
# a new tag is pushed. Version tags should be of the form: v0.1.0
- /^v\d+\.\d+\.\d+.*$/
cache:
directories:
- $HOME/docker_images
matrix:
include:
- language: shell
before_install:
- docker load -i $HOME/docker_images/images.tar || true
- git clone https://github.com/voiceip/oreka-build.git $HOME/oreka-build
- docker build -t oreka -f .devcontainer/Dockerfile.orkaudio.build .
script:
- docker run -v "$HOME/oreka-build":/oreka-build -v "$TRAVIS_BUILD_DIR":/oreka-src -i oreka bash /entrypoint.sh
- ls -ltrah $HOME/oreka-build/distribution
before_cache:
- docker save -o $HOME/docker_images/images.tar $(docker images -a -q)
- language: java
dist: trusty
jdk: oraclejdk8
script:
- mvn clean install -DskipTests=true
deploy:
provider: releases
api_key:
secure: "M4odEjSv9Hj8BoMCkc10DRJmA+FVrWrbwKt4vHVy04WVUonwZo5/31UsUJgDYMV+SnRazTDDTfhjFuWbWaKkNUgVm42Ddz1sQdiOg5/3DXUHI6hAM3HKpiO5f2MgMGbHtga1l4VqMbDJhQEGl8StsQq64tXwcHCGHykX7F0ZPJx/QPy8VEfFZ330i3J4tl36jS7pE5LsVUzfzfoMp0aruM1lpg9BJXW0CcI7+0wZTxLrgziWnk6r0DSltDvbVkeWDE8Ol+51CfxIlwatEfTj3R5xx1XvRFUumLm/w4hal19Thi5Owag6kTtP6wmcYnd+UA1awpe6NZZlRr3Tdly67Pduh/B5BT7cLGGuOw55KaPk9ZPM5omQptp5hVhxw2xMg7tLyqh30nxXZaH4/maXp9RJmr7o1gRKmv6Fe0mthcaO+AtOCPZy6Rwe285ZdhP0pbnBRA6qHNPUn5zagsDunEtvchU5TfRkdx7Lw01kqtgQaZP2PwraG9JQf3HoUIyM1pwMVlXqao3CFVbbsebobIUrqZqcdAwXmVTt4O+4FMCwJohGSI3Hk8/XPKypXl+yY91UAF82Kc4lVnXp7CvhJpEx+7eP8dW16cHwwwU1QLJ/xJMLXRNgOZO+4XqlicKCaK7yi551nJqwHIPGhu20465E4BD6BrlKVuIv072Y9HU="
file_glob: true
file:
- $HOME/oreka-build/distribution/*.deb
- orktrack/target/*.war
- orkweb/target/*.war
skip_cleanup: true
draft: true
on:
tags: true