This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
69 lines (61 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
69
dist: trusty
language: java
cache:
directories:
- $HOME/.m2/repository
- frontend/src/bower_components
- frontend/src/node_modules
- integration/rocket-chat/node_modules
before_cache:
- rm -rf $HOME/.m2/repository/io/redlink/smarti/
services:
- mongodb
jdk:
- openjdk8
before_install:
- gem install sass
- gem install compass
install:
- mvn -B clean install -Dquick
script:
- mvn -B -DargLine="-Xmx2g" test
jobs:
include:
- stage: test
- stage: documentation
if: branch IN (master, documentation) AND type IN (push, api)
script: true
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/target/html/
github_token: ${GH_TOKEN}
- stage: release
if: tag =~ ^smarti- AND type = push
before_script:
- sudo apt-get -qq update
- sudo apt-get install -y rpm pbzip2
script:
- mvn -B -f dist/ install -Pdeb,rpm,docker
- mvn -B -f integration/solr-docker/ install -Pdeb,rpm,docker
before_deploy:
- SMARTI_VERSION="$(mvn -B -q -N exec:exec -Dexec.executable=echo -Dexec.args='${project.version}')"
- docker save redlinkgmbh/smarti:${SMARTI_VERSION} | pbzip2 > "dist/target/smarti-${SMARTI_VERSION}.docker.tbz2"
- docker save redlinkgmbh/smarti-solr:${SMARTI_VERSION} | pbzip2 > "dist/target/smarti-solr-${SMARTI_VERSION}.docker.tbz2"
deploy:
provider: releases
api_key: ${GH_TOKEN}
file_glob: true
file:
- application/target/*-exec.jar
- application/target/*-solrcores.zip
- dist/target/*.deb
- dist/target/rpm/smarti/RPMS/noarch/*.rpm
- dist/target/*.docker.tbz2
skip_cleanup: true
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
target_commitish: ${TRAVIS_COMMIT}
draft: true
on:
tags: true