forked from vert-x3/vertx-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.49 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
language: java
services:
- docker
branches:
only:
- master
- /^\d+\.\d+$/
cache:
directories:
- $HOME/.m2
before_cache:
- rm -rf $HOME/.m2/repository/io/vertx/
jobs:
include:
- stage: test
name: "OpenJDK 8"
jdk: openjdk8
script: mvn clean verify -B
- if: type != pull_request
name: "OpenJDK 11"
jdk: openjdk11
script: mvn clean verify -B
- name: "Apollo Link tests"
jdk: openjdk8
before_script:
- cd vertx-web-graphql
- mvn exec:java -Dexec.mainClass=io.vertx.ext.web.handler.graphql.ApolloTestsServer -Dexec.classpathScope=test > ${HOME}/ApolloTestsServer.log 2>&1 &
- echo $! > ${HOME}/ApolloTestsServer.pid
- ( tail -f ${HOME}/ApolloTestsServer.log & ) | grep -q "Apollo tests server started"
script:
- cd tests/apollo
- npm install
- npm run test
after_failure: cat ${HOME}/ApolloTestsServer.log
after_script: cat ${HOME}/ApolloTestsServer.pid | xargs kill -9
- stage: deploy
name: "Deploy to Sonatype's snapshots repository"
jdk: openjdk8
if: type != pull_request AND env(SONATYPE_NEXUS_USERNAME) IS present
script:
- bash .travis.deploy.artifacts.sh
notifications:
email:
recipients:
- secure: "Q9QVThuDW0VF6OAcaeFbdOZrK8DBoaDw4GVqDukbgPWyjoJN/KTifxFYIJGDsYva5gZp9OKyeTe3cYC0MBlX2SMlJbU83HkApl3EKmM6QGgFVGbRZAjX0LVX5sGhlqfcyjiYedORlTLeEuJfbiYoPoEfQ1dR8cEPSCdInA+mgb0="
on_success: always
on_failure: always