-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
33 lines (30 loc) · 1.41 KB
/
bitbucket-pipelines.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
image:
name: scrmhub/php55-awscli:1.1
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
email: $DOCKER_EMAIL
pipelines:
branches:
develop: # run tests
- step:
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit -c tests/phpunit.xml
release/*: # run tests
- step:
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit -c tests/phpunit.xml
master: # run tests and push to packagist
- step:
script:
- apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- vendor/bin/phpunit -c tests/phpunit.xml
# push to Packagist
- curl -XPOST -H'content-type:application/json' "https://packagist.org/api/[email protected]&apiToken=${PACKAGIST_API_TOKEN}" -d'{"repository":{"url":"https://bitbucket.org/scrmhub/php-sdk"}}'