summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/.travis.yml
blob: 3c1bcd43708cd901af44374b26902a25b3a9cd54 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# https://docs.travis-ci.com/user/languages/php
language: php
sudo: required

# https://docs.travis-ci.com/user/trusty-ci-environment/
dist: trusty

matrix:
  fast_finish: true
  include:
    - env: DB=mysql; MW=REL1_29; PHPUNIT=5.7.*
      php: 7.1
    - env: DB=mysql; MW=REL1_28; FUSEKI=2.4.0; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=mysql; MW=REL1_27; VIRTUOSO=6.1; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=mysql; MW=REL1_27; SESAME=2.8.7; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=sqlite; MW=REL1_27; SITELANG=ja; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=postgres; MW=REL1_31; PHPUNIT=6.5.*
      php: 7.2
    - env: DB=mysql; MW=REL1_27; BLAZEGRAPH=1.5.2; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=mysql; MW=REL1_30; ES=5.6.6; PHPUNIT=5.7.*
      php: 7.1
    - env: DB=mysql; MW=REL1_27; TYPE=benchmark; PHPUNIT=5.7.*
      php: hhvm-3.18
    - env: DB=sqlite; MW=master; PHPUNIT=6.5.*
      php: 7.2
    - env: DB=sqlite; MW=REL1_27; TYPE=composer; PHPUNIT=4.8.*
      php: 5.6
    - env: DB=mysql; MW=REL1_27; TYPE=relbuild; PHPUNIT=4.8.*
      php: 5.6
  allow_failures:
    # Can fail when pushed/used with newly Composer dependencies
    - env: DB=mysql; MW=REL1_27; TYPE=relbuild; PHPUNIT=4.8.*
    # Can fail when pushed/used with newly Composer dependencies
    - env: DB=sqlite; MW=REL1_27; TYPE=composer; PHPUNIT=4.8.*
    # This is MW master, you never know what WMF developers have put in for easter eggs
    - env: DB=sqlite; MW=master; PHPUNIT=6.5.*
    # May take a moment and is non-critical therefore allow it to run without delaying the status
    - env: DB=mysql; MW=REL1_27; TYPE=benchmark; PHPUNIT=5.7.*
    - env: DB=mysql; MW=REL1_27; SESAME=2.8.7
    - env: DB=mysql; MW=REL1_30; ES=5.6.6; PHPUNIT=5.7.*


# Dec 16, 2015 (GCE switch): Travis support wrote (Tomcat + Java):
# bug in the JDK: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7089443.
# The hostname for the precise-gce platform is longer than 64 characters on the
# VM your job is running on
#- sudo hostname "$(hostname | cut -c1-63)"
#- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
#- cat /etc/hosts # optionally check the content *after*

# Aug 12, 2016: (incident:2p40l49r3yxd) Travis support asks to add `sudo sysctl ...`
# After investigation, removed the lines from Dec 16, 2015 as it emptied the hosts file
before_install:
  - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
  - sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
  - ip addr # for confirmation. can be skipped
  - cat /etc/hosts # optionally check the content *before*

install:
  - travis_retry composer self-update
  - bash ./tests/travis/install-services.sh
  - bash ./tests/travis/install-mediawiki.sh
  - bash ./tests/travis/install-semantic-mediawiki.sh

before_script:
  - bash ./tests/travis/update-configuration-settings.sh

script:
  - bash ./tests/travis/run-tests.sh

after_script:
  - if [ ls /tmp/stacktrace* 1> /dev/null 2>&1 ] ; then cat /tmp/stacktrace*.log ; fi
  - if [ -f php.log ] ; then cat php.log ; fi
  - if [ -f /tmp/mediawiki-debug.log ] ; then cat /tmp/mediawiki-debug.log ; fi

after_success:
  - bash ./tests/travis/upload-coverage-report.sh

cache:
  directories:
    - $HOME/.composer/cache