-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (29 loc) · 1.18 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
language: php
sudo: required
service:
- docker
jobs:
include:
- stage: build docker image
env:
- SYPIAN_BUILD_ENV=production
script:
- docker run --rm --volume $TRAVIS_BUILD_DIR:/app composer install --ignore-platform-reqs
- docker-compose build
- stage: test
script:
- docker run --rm --volume $TRAVIS_BUILD_DIR:/app composer install --ignore-platform-reqs
- docker-compose build
- make lint
- script:
- export
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- docker-compose run -w "/var/www/html/" php ./cc-test-reporter before-build
- docker run --rm --volume $TRAVIS_BUILD_DIR:/app composer install --ignore-platform-reqs
- mv .env.travis .env
- docker-compose build
- docker-compose up -d neo4j
- docker-compose run -w "/var/www/html/" php ./bin/wait-for-neo4j.sh
- make test
- docker-compose run -w "/var/www/html/" php ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT -r $CC_TEST_REPORTER_ID