-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
64 lines (64 loc) · 1.66 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
dist: trusty
sudo: required
git:
depth: 4
addons:
apt:
packages:
- fakeroot
language: scala
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y graphviz rpm
services:
- docker
jdk:
- oraclejdk8
scala:
- 2.12.6
notifications:
flowdock:
- 8fa39d3ba829b0083c135134658d0ac2
- fe0612eaf41017111bd1db99f1c00b49
slack: aaltoasia:oQgcAuEw6ugXl8FIO7A60Ei2
branches:
only:
- master
- development
- travis
- /^\d+\.\d+\.\d+([.\- ].*)?$/
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
script:
- sbt ++$TRAVIS_SCALA_VERSION "project omiNode" clean coverage test
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
after_success:
- sbt "project omiNode" coverageReport coveralls codacyCoverage
before_deploy:
- sbt release
- zip -r9 target/apidoc-${TRAVIS_TAG}.zip O-MI-Node/html/api/*
deploy:
- provider: releases
api_key:
secure: JL6HBX4DRR5jIf7x8cTFSKZRcnjCeAq3BpVfp4gfIknaYdW+Hs9wNE075hArVzeC9BqEJX3wdymguG7zznYpcRBrTXf8OInHFoOyMNvDGn4KHuAPUDp36BrkQLCys7tyVL6rI+ySx3wACWkx0Lwr30Mijtk12JlkRk/qy9h0Nj8=
file:
- target/universal/o-mi-node-${TRAVIS_TAG}.zip
- target/universal/o-mi-node-${TRAVIS_TAG}.tgz
- target/O-MI-Node_${TRAVIS_TAG}_all.deb
- target/rpm/RPMS/noarch/o-mi-node-${TRAVIS_TAG}-1.noarch.rpm
- target/apidoc-${TRAVIS_TAG}.zip
draft: true
skip_cleanup: true
overwrite: true
on:
tags: true
- provider: script
script: bash docker_push
on:
tags: true