forked from apiman/apiman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 1.87 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
language: java
cache:
yarn: true
directories:
- "$HOME/.tsd-cache" # Typings
- "$TRAVIS_BUILD_DIR/manager/ui/war/node_modules" # NPM/Yarn
- "$HOME/.m2" # Maven
before_cache:
- "rm -rf $HOME/.m2/repository/io/apiman"
services:
- elasticsearch
- docker
before_install:
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
- echo 'MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmx1024m"' > ~/.mavenrc
- curl -O https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.deb && sudo dpkg -i --force-confnew elasticsearch-1.7.5.deb && sudo service elasticsearch restart
- java -version
env:
- ACTION='-Dapiman-test.type=es -Dapiman.gateway-test.config=servlet-es'
- ACTION='-Dapiman.gateway-test.config=vertx3-mem'
- ACTION='-Dapiman.gateway-test.config=vertx3-es'
- ACTION='-Dapiman.gateway-test.config=vertx3-file'
- ACTION='-Dapiman.gateway-test.config=amg-1'
jobs:
include:
- stage: build
script: travis_retry mvn clean install -Dinvoker.skip -Dmaven.javadoc.skip=true -Dmvn.skip.test=true -DskipTests=true -T1C -B
- stage: test
script: travis_retry mvn test install -Dinvoker.skip -Dmaven.javadoc.skip=true -B $ACTION
- stage: deploy
script:
- mvn install -Pdocker -Dinvoker.skip -Dmaven.javadoc.skip=true -B
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push apiman/on-wildfly10:master
- docker push apiman/on-wildfly11:master
stages:
- build
- test
- name: deploy
if: "branch = master AND type != pull_request"
jdk:
- oraclejdk8
notifications:
irc:
channels:
- "chat.freenode.net#apiman"
on_success: change
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"