Skip to content
Newer
Older
100644 57 lines (47 sloc) 1.87 KB
6050cc5 @dhensby Move to new travis containerised infrastructure
dhensby authored
1 language: php
2
3 sudo: false
4
5 addons:
6 apt:
7 packages:
8 - tidy
8ae5839 @chillu Simplified travis builds (using external script)
chillu authored
9
fc6f0fe @tractorcow Set minimum firefox version for travis support
tractorcow authored
10 addons:
11 firefox: "31.0"
12
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
13 env:
b884671 @chillu Behat travis tests
chillu authored
14 global:
d01883a @tractorcow Merge remote-tracking branch 'origin/3.1'
tractorcow authored
15 - CORE_RELEASE=master
b884671 @chillu Behat travis tests
chillu authored
16 - "ARTIFACTS_AWS_REGION=us-east-1"
17 - "ARTIFACTS_S3_BUCKET=silverstripe-travis-artifacts"
18 - secure: "7V20Qk3bIG2AlTJaA5D/uzB8vUVvRwQp+xjRYUxlahtj9FcuqEV3HIyjwwJe0T6Z1bnRYuu28ZnCT2CfP9BBZ3FE7AwSZbPase9c0/at2qDJNqkvIdC1xZ1H6Fcy2LSwNB9wLQPe613ItVdanitEuwE41iowxBPslxUUTnwx7eY="
19 - secure: "f/GWlbnNri2YpCOrJfZl7tkhpMmcRVUbCdmb+beAY90gFBJQPHtljzf8M4KaCP0OkLOtRFuGoMFdIcpadl4J6IG1XP18IJNz+nKzCL/sJj/FF9y77RdMHWE9jr21G9ar5tywkn7JM6vrnTCY89OnHeQx67SKvxqX5CpVx+rdcEU="
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
20
21 matrix:
e194b96 @chillu PHP 5.5 CI, don't allow failures for sqlite3 and postgres
chillu authored
22 include:
d9b5895 @chillu Increase minimum required PHP version to 5.5
chillu authored
23 - php: 5.5
4d0e4b7 @halkyon Reformat .travis.yml
halkyon authored
24 env: DB=MYSQL
d9b5895 @chillu Increase minimum required PHP version to 5.5
chillu authored
25 - php: 5.5
f2efbef @tractorcow Merge remote-tracking branch 'origin/3.1' into 3.2
tractorcow authored
26 env: DB=PGSQL
e194b96 @chillu PHP 5.5 CI, don't allow failures for sqlite3 and postgres
chillu authored
27 - php: 5.5
f2efbef @tractorcow Merge remote-tracking branch 'origin/3.1' into 3.2
tractorcow authored
28 env: DB=SQLITE
29 - php: 5.6
30 env: DB=MYSQL PDO=1
79da34f @simonwelsh Add PHP 5.6 to the test matrix
simonwelsh authored
31 - php: 5.6
4d0e4b7 @halkyon Reformat .travis.yml
halkyon authored
32 env: DB=MYSQL BEHAT_TEST=1
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
33
34 before_script:
e570d4a @dhensby Updating travis provisioner
dhensby authored
35 - composer self-update || true
b884671 @chillu Behat travis tests
chillu authored
36 - phpenv rehash
8ae5839 @chillu Simplified travis builds (using external script)
chillu authored
37 - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
b884671 @chillu Behat travis tests
chillu authored
38 - "if [ \"$BEHAT_TEST\" = \"\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss; fi"
39 - "if [ \"$BEHAT_TEST\" = \"1\" ]; then php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require silverstripe/behat-extension; fi"
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
40 - cd ~/builds/ss
b884671 @chillu Behat travis tests
chillu authored
41 - php ~/travis-support/travis_setup_selenium.php --if-env BEHAT_TEST
42 - php ~/travis-support/travis_setup_php54_webserver.php --if-env BEHAT_TEST
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
43
bbc3aaa @sminnee MINOR: Remove training whitespace.
sminnee authored
44 script:
b5214d2 @tractorcow Update travis configuration to use composer phpunit
tractorcow authored
45 - "if [ \"$BEHAT_TEST\" = \"\" ]; then vendor/bin/phpunit cms/tests; fi"
b884671 @chillu Behat travis tests
chillu authored
46 - "if [ \"$BEHAT_TEST\" = \"1\" ]; then vendor/bin/behat @cms; fi"
47
48 after_failure:
49 - php ~/travis-support/travis_upload_artifacts.php --if-env BEHAT_TEST,ARTIFACTS_AWS_SECRET_ACCESS_KEY --target-path $TRAVIS_REPO_SLUG/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID --artifacts-base-url https://s3.amazonaws.com/$ARTIFACTS_S3_BUCKET/
38f28de @simonwelsh Adds Travis testing to the CMS
simonwelsh authored
50
51 branches:
52 except:
d298ec9 @chillu Blacklisting further travis branches
chillu authored
53 - 2.1
54 - 2.2
55 - 2.3
56 - translation-staging
Something went wrong with that request. Please try again.