forked from apiman/apiman-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 1.07 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
sudo: required
language: java
jdk:
- oraclejdk8
- openjdk8
services:
- 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
- sudo /etc/init.d/postgresql stop
install:
- export WORKSPACE="$(pwd)/workspace"
- mkdir $WORKSPACE
- git clone https://github.com/apiman/apiman $WORKSPACE/apiman
- git clone https://github.com/apiman/apiman-plugins $WORKSPACE/apiman-plugins
- echo "export TEST_SOURCES=$(pwd)" | tee --append tools/scripts/travis/installrc.sh tools/scripts/travis/scriptrc.sh
- export RC_FILE=tools/scripts/travis/installrc.sh
- travis_wait 30 bash tools/scripts/travis/travis_run.sh
script:
- export WORKSPACE="$(pwd)/workspace"
- RC_FILE=tools/scripts/travis/scriptrc.sh bash tools/scripts/tests_runner.sh | egrep -v 'Download|\\[exec\\] [[:digit:]]+/[[:digit:]]+|^[[:space:]]*\\[exec\\][[:space:]]*$' ; [ ${PIPESTATUS[0]} == 0 ];
notifications:
email:
branches:
only:
- master