forked from UFSC/moodle-tcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
33 lines (27 loc) · 1.02 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
before_script:
#- apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs
- service mysql start
- source /etc/profile
- ruby -v
- which ruby
- gem install bundler --no-ri --no-rdoc
- git submodule init
- git submodule update
- rm -f config/tcc_config.yml
- rm -f config/email.yml
- rm -f config/moodle.yml
- ln -s tcc_config.yml.example config/tcc_config.yml
- ln -s email.yml.example config/email.yml
- ln -s database.yml.example config/database.yml
- ln -s moodle.yml.example config/moodle.yml
- ln -s secrets.yml.example config/secrets.yml
- RAILS_ENV=test rvm 2.2.1@sistema-tcc do bundle install --jobs $(nproc) "${FLAGS[@]}" --without production
- RAILS_ENV=test rvm 2.2.1@sistema-tcc do bundle exec rake db:drop
- RAILS_ENV=test rvm 2.2.1@sistema-tcc do bundle exec rake db:create
- RAILS_ENV=test rvm 2.2.1@sistema-tcc do bundle exec rake db:migrate
rspec:
script:
- COVERAGE=true RAILS_ENV=test rvm 2.2.1@sistema-tcc do bundle exec rake spec
#rubocop:
# script:
# - bundle exec rubocop