forked from goalgorilla/open_social
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 2.47 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
48
49
50
51
52
53
54
sudo: required
addons:
artifacts:
# ...
paths:
- $(git ls-files -o | grep travis_artifacts | tr "\n" ":")
language: php
php:
- 5.6
env:
global:
secure: lzhn0fc9bhgGdWrC+4FdbvK6QpjHsb4UVy0wvghcV7HK4YU0ZpRYm5MD9bSakRviulN+hQMIYddQYVekJKO0gsK4sh5BdL/1tKx5M8DqJcMo1zyK6h0Z12EWKCnRseYc4y1Y0EgwmT3iN4e/fxLJ+qNhB8rm4yiwlgjonHI2146KdZkhUJsXwDfL/cb2hYm5Ky86TC+ii1RfpCOueU5SUU5LuIzrPDt7Gyme4K0NIxr3PjMa0IzufNwOl7qqqWcjlzjTuMeR0mH6N6I1amF5eOuYuwa1Bdg7DUP/Pw0KHJ1SGFHtmoRzSktLO9DNtOYlg0u+Mr2O1lrI3eRFbf7Taokl2fW+4J2Vb38yrg2H6Iq8KuSvRGdmBACZC8n3bpGPc6X9tUx3BU5oK7OnrSvEjo+tBTG3+RKwmh+y+zkXHq8PYD21nsS5iMTEuROVmh59W2mRcAAxjn1j/T+vbjv4csv2Y+PRj0zycs8OgjIlt86EfzdYhyHVDj+7dNQT6FPId81NvJXEyCpa8YUBLIT1lT8O6VTTWs/cEy7q+Zm8dEaxqE9wkgV8shnG7fBvPThcmKMnE0JsbEYlDv/8JR7SfKbBroTsF0Yw8ZX+Vc6jsLrlfrICShNvzs8eiu96TfC09Qv+6GY54ET8nw6/UBWpi/k6gDVtVuzywl3iF1+8M1A=
services:
- docker
before_install:
# Lets install Docker first.
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-engine
- docker --version
# Lets set-up our helper repository with all the docker config and use correct version in composer.json.
- git clone --branch master https://github.com/goalgorilla/drupal_social.git install
- cd install
- phpenv config-rm xdebug.ini
# Change this back to composer require goalgorilla/open_social dev-8.x-1.x#${TRAVIS_COMMIT} before merge to 8.x-1.x!!!
- export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- composer require goalgorilla/open_social:dev-${BRANCH}#${TRAVIS_COMMIT}
# Lets install via docker-compose.
- sudo rm /usr/local/bin/docker-compose || true
- curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker-compose -f docker-compose-travis.yml up -d
- docker ps -a
script:
- docker exec -i social_web bash /root/dev-scripts/install/install_script.sh
- docker exec -i social_web_scripts sh /root/travis/unit-tests.sh
- docker ps
- docker logs social_selenium
- sleep 30
- docker exec -it social_behat sh /root/travis/behatstability.sh
after_success:
- bash dev-scripts/trigger_dockerhub.sh