Commit 97c9fa1e authored by Iasmin Mendes's avatar Iasmin Mendes 💃🏻

Merge branch 'master' of https://gitlab.com/noosfero/noosfero into internship_plugin

parents b5749f29 665da0dc
Pipeline #55281968 failed with stages
in 2 minutes and 27 seconds

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

.git
.gitignore
README.md
#
# OS X
#
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
#
# Vagrant
#
coreos
.env
.vagrant
#
# Rails
#
.env
.env.sample
*.rbc
capybara-*.html
.rspec
log
*/*.log
*/*/*.log
tmp
db/*.sqlite3
db/*.sqlite3-journal
public/system
coverage/
spec/tmp
**.orig
rerun.txt
pickle-email-*.html
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
#config/initializers/secret_token.rb
#config/secrets.yml
## Environment normalisation:
.bundle
# these should all be checked in to normalise the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
# if using bower-rails ignore default bower_components path bower.json files
vendor/assets/bower_components
*.bowerrc
bower.json
# Ignore pow environment settings
.powenv
\ No newline at end of file
image: noosfero/ci image: alaxalves/noosfero-ci:stretch
variables:
RAILS_ENV: test
SELENIUM_DRIVER: chrome
POSTGRES_DB: gitlab_ci_test
POSTGRES_USER: gitlab_ci_runner
POSTGRES_PASSWORD: ""
services:
- postgres:9.4
before_script: before_script:
- mkdir -p locale # makes quick-start skip compiling translations - apt update
- ./script/set-apt-proxy - ./script/silent-quick-start -i
- ./script/silent-quick-start - mkdir -p tmp/pids tmp/cache cache
- bundle exec rake db:migrate RAILS_ENV=test - rm -f vendor/rails
- cp config/database.yml.gitlab-ci config/database.yml
- bundle exec rake db:create
- bundle exec rake db:schema:load
- bundle exec rake db:migrate
stages: stages:
#FIXME Selenium tests are randomly failing and this avoid other tests to run. - test
#- smoke-tests - test-plugins
- all-tests - test-cucumber
- test-selenium
- code-quality
#smoke: .cache: &cache
# script: bundle exec rake ci:smoke cache:
# stage: smoke-tests key: "$CI_BUILD_REF_NAME"
paths:
- /usr/share/rubygems-integration/all/
.retriable-template: &retriable .retriable-template: &retriable
retry: 2 retry: 2
specs-models: rspec:
<<: *retriable <<: *retriable
script: bundle exec rake test:specs <<: *cache
stage: all-tests script: bundle exec rails test:specs
stage: test
api: api:
<<: *retriable <<: *retriable
script: bundle exec rake test:api <<: *cache
stage: all-tests script: bundle exec rails test:api
stage: test
units: models:
<<: *retriable <<: *retriable
script: bundle exec rake test:units <<: *cache
stage: all-tests script: bundle exec rails test:models
stage: test
functionals: controllers:
<<: *retriable <<: *retriable
script: bundle exec rake test:functionals <<: *cache
stage: all-tests script: bundle exec rails test:controllers
stage: test
integration: integration:
<<: *retriable <<: *retriable
script: bundle exec rake test:integration <<: *cache
stage: all-tests script: bundle exec rails test:integration
stage: test
cucumber-1: cucumber-1:
<<: *retriable <<: *retriable
script: SLICE=1/2 bundle exec rake cucumber <<: *cache
stage: all-tests script: SLICE=1/2 bundle exec cucumber --profile default
stage: test-cucumber
cucumber-2: cucumber-2:
<<: *retriable <<: *retriable
script: SLICE=2/2 bundle exec rake cucumber <<: *cache
stage: all-tests script: SLICE=2/2 bundle exec cucumber --profile default
stage: test-cucumber
selenium-1: selenium-1:
<<: *retriable <<: *retriable
script: SLICE=1/6 bundle exec rake selenium <<: *cache
stage: all-tests script: SLICE=1/6 bundle exec rails selenium
stage: test-selenium
selenium-2: selenium-2:
<<: *retriable <<: *retriable
script: SLICE=2/6 bundle exec rake selenium script: SLICE=2/6 bundle exec rails selenium
stage: all-tests stage: test-selenium
selenium-3: selenium-3: