-
Notifications
You must be signed in to change notification settings - Fork 24
/
circle.yml
24 lines (24 loc) · 933 Bytes
/
circle.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
machine:
php:
version: 7.1.9
node:
version: 6.1.0
dependencies:
pre:
- pecl install mongodb
- echo "extension=mongodb.so" > /opt/circleci/php/$(phpenv global)/etc/conf.d/mongodb.ini
post:
- npm install -g newman newman-reporter-phpunit
- git clone [email protected]:sraka1/xAPITests.git
test:
pre:
- yes '' | ./X setup
- chmod -R 0770 storage
- ./X user:create --name=test --description=test [email protected] --password=Test123! --permissions=super
- ./X auth:basic:create --name=test --description=test --expiration=1914156000 [email protected] --scopes=super --key=test --secret=test
- php -S localhost:8080 -t ./public/:
background: true
override:
- php vendor/bin/phpunit
post:
- newman run ./xAPITests/tests/1.0.3/xAPI.json -e ./xAPITests/environments/local.json -r cli,phpunit