Last active
March 7, 2016 15:53
-
-
Save rande/a269338fcfbd3af43e3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: [] | |
before_script: | |
- curl -sL https://github.com/rande/gitlab-ci-helper/releases/download/master/gitlab-ci-helper-linux-amd64 -o /usr/local/bin/ci-helper && chmod 755 /usr/local/bin/ci-helper | |
- ci-helper flowdock:status ekino "ekino jobs" | |
- source /root/.bashrc | |
stages: | |
- build | |
- test | |
- package | |
- deploy | |
- report | |
build_js: | |
image: ekino/docker-buildbox:latest-node5.7 | |
stage: build | |
tags: [all] | |
script: | |
- npm install | |
- bower install --allow-root | |
- gulp build | |
- ci-helper flowdock:status -last ekino "ekino jobs" | |
artifacts: | |
paths: | |
- web/public | |
build_php: | |
image: ekino/docker-buildbox:latest-php7.0 | |
stage: build | |
tags: [all] | |
script: | |
- composer config -g github-oauth.github.com $GITHUB_TOKEN | |
- composer install --no-interaction --no-progress --optimize-autoloader --prefer-dist | |
- $(find vendor -name ".git*" -exec rm -Rf {} \; ; exit 0) | |
- ci-helper flowdock:status -last ekino "ekino jobs" | |
artifacts: | |
paths: | |
- vendor | |
package: | |
image: ekino/docker-buildbox:latest-php7.0 | |
stage: package | |
tags: [all] | |
script: | |
- ci-helper project:builds:artifacts -job=build_js -path=./ | |
- ci-helper project:builds:artifacts -job=build_php -path=./ | |
- ci-helper ci:meta | |
- ci-helper ci:revision | |
- ci-helper flowdock:status -last ekino "ekino jobs" | |
artifacts: | |
paths: | |
- app | |
- src | |
- vendor | |
- web | |
- ci.json | |
- REVISION | |
report_success: | |
image: ekino/docker-buildbox:latest-php7.0 | |
stage: report | |
tags: [all] | |
script: | |
- ci-helper flowdock:message ekino "ekino jobs" "@team - Congratz, the build is green!" | |
- ci-helper flowdock:status -last ekino "ekino jobs" | |
when: on_success | |
report_failure: | |
image: ekino/docker-buildbox:latest-php7.0 | |
stage: report | |
tags: [all] | |
script: | |
- ci-helper flowdock:message ekino "ekino jobs" "@team - Oops, the build is broken!" | |
- ci-helper flowdock:status -last ekino "ekino jobs" | |
when: on_failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment