Skip to content

Commit 12ef1be

Browse files
committed
init
0 parents  commit 12ef1be

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# php7 / mysql / node
2+
FROM andmetoo/bitbucket-pipelines-php7
3+
4+
# Install cypress.io dependencies
5+
RUN add-apt-repository main
6+
RUN add-apt-repository universe
7+
RUN add-apt-repository restricted
8+
RUN add-apt-repository multiverse
9+
RUN apt update
10+
RUN apt-get install -y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
11+

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Milos Stojanovic
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Bitbucket Pipelines Docker image based on andmetoo/bitbucket-pipelines-php7
2+
3+
### Packages installed by andmetoo/bitbucket-pipelines-php7
4+
5+
- Ubuntu 16.04
6+
- `php7.0-fpm`, `php7.0-mcrypt`, `mongod`, `xdebug`, `php7.0-zip`, `php7.0-xml`, `php7.0-mbstring`, `php7.0-curl`, `php7.0-json`, `php7.0-imap`, `php7.0-mysql` and `php7.0-tokenizer`
7+
- [Composer](https://getcomposer.org/)
8+
- [Deployer](https://github.com/deployphp/deployer)
9+
- Node / NPM / Gulp / Yarn
10+
- Mysql 5.7
11+
12+
### Packages added for Cypress.io (dependencies)
13+
14+
- libgtk2.0-0
15+
- libnotify-dev
16+
- libgconf-2-4
17+
- libnss3
18+
- libxss1
19+
- libasound2
20+
21+
### Sample `bitbucket-pipelines.yml`
22+
23+
```YAML
24+
image: alcalbg/ci-php-mysql-node
25+
pipelines:
26+
default:
27+
caches:
28+
- composer
29+
- node
30+
- cypress-bin
31+
- step:
32+
script:
33+
- service mysql start
34+
- mysql -h localhost -u root -proot -e "CREATE DATABASE test;"
35+
- composer install --no-interaction --no-progress --prefer-dist
36+
- npm install --no-spin
37+
- gulp
38+
- ./vendor/phpunit/phpunit/phpunit -v --coverage-text --colors=never --stderr
39+
- npm run tests
40+
41+
definitions:
42+
caches:
43+
cypress-bin: $HOME/.cache/Cypress
44+
```
45+

0 commit comments

Comments
 (0)