Skip to content

Commit

Permalink
[skip ci] Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyk committed Jul 24, 2017
1 parent 3ce2d7a commit b579416
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ stages:
build:
image: gitlab.toavalon.com:5000/omnisynapse/php-postgres-mysql:latest
stage: build
script:
before_script:
- apk update
- apk add git
- git submodule sync --recursive
- git submodule update --init --recursive
- curl -sS https://getcomposer.org/installer | php -- --install-dir=./ --filename=composer
- ./composer config -g github-oauth.github.com $GITHUB_KEY
script:
- ./composer install --no-interaction --optimize-autoloader --no-plugins --dev --no-progress
artifacts:
paths:
Expand Down Expand Up @@ -60,9 +61,9 @@ Integrational Tests:
- pecl install xdebug
- echo -e "zend_extension=$(find /usr -name xdebug.so)\n" >> /usr/local/etc/php/conf.d/xdebug.ini
- php --version
script:
- ./.gitlab-prepare-for-tests.sh
- mkdir coverage
script:
- echo "Run the tests"
- php vendor/bin/phpunit --colors --coverage-html=./coverage --report-useless-tests --testdox-html=./testdox.html --whitelist=app --coverage-text

Expand All @@ -79,8 +80,11 @@ build image:
stage: build_image
tags:
- docker
script:
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REPOSITORY
after_script:
- docker logout
script:
- docker build --pull -t $REPOSITORY/$IMAGE:$TEST_TAG .
- docker push $REPOSITORY/$IMAGE:$TEST_TAG
only:
Expand All @@ -94,9 +98,12 @@ release image:
stage: release
tags:
- docker
script:
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REPOSITORY
- docker pull $REPOSITORY/$IMAGE:$TEST_TAG
before_script:
- docker logout
script:
- docker tag $CONTAINER_TEST_IMAGE $REPOSITORY/$IMAGE:$RELEASE_TAG
- docker push $REPOSITORY/$IMAGE:$RELEASE_TAG
only:
Expand All @@ -111,14 +118,17 @@ develop deploy:
- docker
environment:
name: develop
url: nau.toavalon.com
script:
url: https://nau.toavalon.com
before_script:
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh [email protected] -p 665 "docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REPOSITORY"
after_script:
- ssh [email protected] -p 665 "docker logout"
script:
- ssh [email protected] -p 665 'WEB_PATH=/opt/nau/web bash -s' < deploy.sh -- $TEST_TAG

pages:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#NAU Web
# NAU Web

[![build status](https://gitlab.toavalon.com/codename-nau/web/badges/develop/build.svg)](https://gitlab.toavalon.com/codename-nau/web/commits/develop)
[![coverage report](https://gitlab.toavalon.com/codename-nau/web/badges/develop/coverage.svg)](https://gitlab.toavalon.com/codename-nau/web/commits/develop)
Expand Down

0 comments on commit b579416

Please sign in to comment.