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:
- mkdir -p locale # makes quick-start skip compiling translations
- ./script/set-apt-proxy
- ./script/silent-quick-start
- bundle exec rake db:migrate RAILS_ENV=test
- apt update
- ./script/silent-quick-start -i
- mkdir -p tmp/pids tmp/cache cache
- 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:
#FIXME Selenium tests are randomly failing and this avoid other tests to run.
#- smoke-tests
- all-tests
- test
- test-plugins
- test-cucumber
- test-selenium
- code-quality
#smoke:
# script: bundle exec rake ci:smoke
# stage: smoke-tests
.cache: &cache
cache:
key: "$CI_BUILD_REF_NAME"
paths:
- /usr/share/rubygems-integration/all/
.retriable-template: &retriable
retry: 2
specs-models:
rspec:
<<: *retriable
script: bundle exec rake test:specs
stage: all-tests
<<: *cache
script: bundle exec rails test:specs
stage: test
api:
<<: *retriable
script: bundle exec rake test:api
stage: all-tests
<<: *cache
script: bundle exec rails test:api
stage: test
units:
models:
<<: *retriable
script: bundle exec rake test:units
stage: all-tests
<<: *cache
script: bundle exec rails test:models
stage: test
functionals:
controllers:
<<: *retriable
script: bundle exec rake test:functionals
stage: all-tests
<<: *cache
script: bundle exec rails test:controllers
stage: test
integration:
<<: *retriable
script: bundle exec rake test:integration
stage: all-tests
<<: *cache
script: bundle exec rails test:integration
stage: test
cucumber-1:
<<: *retriable
script: SLICE=1/2 bundle exec rake cucumber
stage: all-tests
<<: *cache
script: SLICE=1/2 bundle exec cucumber --profile default
stage: test-cucumber
cucumber-2:
<<: *retriable
script: SLICE=2/2 bundle exec rake cucumber
stage: all-tests
<<: *cache
script: SLICE=2/2 bundle exec cucumber --profile default
stage: test-cucumber
selenium-1:
<<: *retriable
script: SLICE=1/6 bundle exec rake selenium
stage: all-tests
<<: *cache
script: SLICE=1/6 bundle exec rails selenium
stage: test-selenium
selenium-2:
<<: *retriable
script: SLICE=2/6 bundle exec rake selenium
stage: all-tests
script: SLICE=2/6 bundle exec rails selenium
stage: test-selenium
selenium-3:
<<: *retriable
script: SLICE=3/6 bundle exec rake selenium
stage: all-tests
<<: *cache
script: SLICE=3/6 bundle exec rails selenium
stage: test-selenium
selenium-4:
<<: *retriable
script: SLICE=4/6 bundle exec rake selenium
stage: all-tests
<<: *cache
script: SLICE=4/6 bundle exec rails selenium
stage: test-selenium
selenium-5:
<<: *retriable
script: SLICE=5/6 bundle exec rake selenium
stage: all-tests
<<: *cache
script: SLICE=5/6 bundle exec rails selenium
stage: test-selenium
selenium-6:
<<: *retriable
script: SLICE=6/6 bundle exec rake selenium
stage: all-tests
<<: *cache
script: SLICE=6/6 bundle exec rails selenium
stage: test-selenium
# NOOSFERO_BUNDLE_OPTS=install makes migrations fails
# probably because of rubygems-integration
plugins-1:
<<: *retriable
script: SLICE=1/5 bundle exec rake test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: all-tests
<<: *cache
script: SLICE=1/5 bundle exec rails test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
stage: test-plugins
plugins-2: