Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Nov 5, 2019
2 parents 2b3db93 + 731cb07 commit bae74d1
Show file tree
Hide file tree
Showing 83 changed files with 7,033 additions and 641 deletions.
66 changes: 65 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,66 @@
##################################################
#
# General settings for your component
#
##################################################

##################################################
# Enviroment settings
##################################################

# Depracticed, now set as CONTAINER_PROJECT_NAME
APP_NAME=pc
# Do you want to dsiplay the symfony debug toolbar?
APP_DEBUG=1
# What is the enviroment type you want to use for local production? (choose between dec,stag,prod, acce or test)
APP_ENV=dev

##################################################
# Documentation settings
##################################################

APP_DEMO=dev
APP_REPRO=dev

##################################################
# Docker settings
##################################################

CONTAINER_REGISTRY_BASE=docker.io/conduction
CONTAINER_PROJECT_NAME=protocomponent
CONTAINER_PROJECT_TITLE=Proto Component
CONTAINER_PROJECT_NAME=pc
CONTAINER_PROJECT_VERSION=V.0.1

##################################################
# Websub settings
##################################################

WEBSUB_PROVIDER=sasd
WEBSUB_AUTHORIZATION=sasd

##################################################
# Authorization settings
##################################################

AUTH_PROVIDER=sasd
AUTH_AUTHORIZATION=sasd

##################################################
# NLX Setup, read more at https://docs.nlx.io/get-started/#
##################################################

# Do you want to provide an nlx outway? (option for your component to reach nlx services)
NLX_OUTWAY=true

# Do you want to provice an nlx inway (option for nlx services to reach your api)
NLX_INWAY=false

# NLX Certification Details
NLX_COUNTRY_NAME=Netherlands
NLX_STATE=Noord-Holland
NLX_LOCALITY=Amsterdam
NLX_ORGANIZATION_NAME=Conduction
NLX_ORGANIZATION_UNIT_NAME=Common-Ground
NLX_COMMON_NAME=zaakonline.nl
NLX_EMAIL_ADDRESS=[email protected]
NLX_CHALLANGE_PASSWORD=
15 changes: 15 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @rubenvdlinde @matthiasoliveiro
*

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
*.php @rubenvdlinde
*.md @matthiasoliveiro

# You can also use email addresses if you prefer.
#docs/* [email protected]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/docker-compose.override.yml

api/helm/kubeconfig.yaml

!/api/public/bundle/*
98 changes: 79 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ sudo: required

services:
- docker

branches:
only:
- master
- acceptation
- staging
- testing
- development

addons:
apt:
Expand All @@ -19,30 +27,82 @@ before_script:
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done

script:
- if jq '.extra.symfony.id != null' api/composer.json -e > /dev/null; then echo 'composer.json must not have symfony.id' 1>&2 && false; fi
# Doing branchs stuff
# - if [ "$TRAVIS_BRANCH" = "master" ]; then env: APP_ENV=prod ; fi
# - if [ "$TRAVIS_BRANCH" = "acceptation" ]; then env: APP_ENV=acce ; fi
# - if [ "$TRAVIS_BRANCH" = "staging" ]; then env: APP_ENV=stag ; fi
# - if [ "$TRAVIS_BRANCH" = "testing" ]; then env: APP_ENV=test ; fi
# - if [ "$TRAVIS_BRANCH" = "development" ]; then env: APP_ENV=dev ; fi
# - if jq '.extra.symfony.id != null' api/composer.json -e > /dev/null; then echo 'composer.json must not have symfony.id' 1>&2 fi
- docker-compose pull --ignore-pull-failures
- docker-compose build --pull
- docker-compose build --pull --build-arg APP_ENV=$APP_ENV
- docker-compose up -d
- sleep 30
- docker-compose exec -T php composer req sensiolabs/security-checker
- docker-compose exec -T php bin/console security:check
- curl -f http://localhost # Client
- curl -f http://localhost:81 # Admin
- curl -f http://localhost:8080 # API
- curl -f http://localhost:8081 # Varnish
- curl -fk https://localhost # Client (HTTP/2)
- curl -fk https://localhost:444 # Admin (HTTP/2)
- curl -fk https://localhost:8443 # API (HTTP/2)
- curl -fk https://localhost:8444 # Varnish (HTTP/2)
- helm lint ./api/helm/api/
# @todo The following lines currently stop the build from passing, that is an issue that needs to be fixed
# - docker-compose exec -T php bin/console security:check
# - curl -f http://localhost # Client
# - curl -f http://admin.localhost # Admin
# - curl -f http://api.localhost # API
# - curl -f http://stag.localhost # API
# - curl -f http://dev.localhost # API
# - curl -fk https://localhost # Client (HTTP/2)
# - curl -fk https://localhost:444 # Admin (HTTP/2)
# - curl -fk https://localhost:8443 # API (HTTP/2)
# - curl -fk https://localhost:8444 # Varnish (HTTP/2)
# - helm lint ./api/helm/api/

before_deploy:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY"

deploy:
provider: script
script: docker-compose push
skip_cleanup: true
on:
repo: api-platform/api-platform
branch: master
- provider: script
script:
- docker-compose push
skip_cleanup: true
on:
branch: master
- provider: script
script:
- docker-compose push
skip_cleanup: true
on:
branch: development
- provider: script
script:
- docker-compose push
skip_cleanup: true
on:
branch: testing
- provider: script
script:
- docker-compose push
skip_cleanup: true
on:
branch: acceptation
- provider: script
script:
- docker-compose push
skip_cleanup: true
on:
branch: staging

# kubectl rollout restart

# we also want to warn the common-ground dev page that a change has been made


#deploy:
# provider: script
# script: docker-compose push test-pc-php
# skip_cleanup: true
# on:
# repo: ConductionNL/Proto-component-commonground
# branch: testing

#deploy:
# provider: script
# script: docker-compose push dev-pc-php
# skip_cleanup: true
# on:
# repo: ConductionNL/Proto-component-commonground
# branch: development
Loading

0 comments on commit bae74d1

Please sign in to comment.