-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
47 lines (40 loc) · 1.51 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: php
php:
- 5.6
- 7.2
dist: xenial
addons:
apt:
packages:
- openjdk-8-jdk
before_install:
- sudo apt-get update > /dev/null
install:
# install gremlin-server
- sh -c ./build/server/install.sh
# set and install composer dependencies
- if [ -n "$GH_TOKEN" ]; then composer config --global github-oauth.github.com ${GH_TOKEN}; else echo "no token"; fi
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]] || [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer update -v; else composer install -v; fi
script: if [[ ${GRAPHSON_VERSION} == "3.0" ]]; then vendor/bin/phpunit --configuration build/phpunit.xml --testsuit graphson3; else vendor/bin/phpunit --configuration build/phpunit.xml --testsuit graphson1; fi
after_success:
- sh -c ./build/deploy.sh
env:
matrix:
- GREMLINSERVER_VERSION="3.2.11" GRAPHSON_VERSION="1.0"
- GREMLINSERVER_VERSION="3.3.11" GRAPHSON_VERSION="1.0"
- GREMLINSERVER_VERSION="3.3.11" GRAPHSON_VERSION="3.0"
- GREMLINSERVER_VERSION="3.4.8" GRAPHSON_VERSION="1.0"
- GREMLINSERVER_VERSION="3.4.8" GRAPHSON_VERSION="3.0"
deploy:
provider: pages
repo: PommeVerte/PommeVerte.github.io
skip-cleanup: true
github-token: $GH_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
local-dir: ./build/logs/PommeVerte.github.io
target-branch: master
verbose: true
project-name: PommeVerte/gremlin-php
on:
branch: master
condition: $TRAVIS_PHP_VERSION = "5.6" && $GRAPHSON_VERSION = "3.0" && $GREMLINSERVER_VERSION = "3.3.11"