Commit 059e63bfc0d979d9f86b426bfea13848d6ee6452
1 parent
69c9f5e5
Exists in
staging
and in
26 other branches
CI: test plugins with Gemfiles on travis/gitlab
Showing
2 changed files
with
14 additions
and
2 deletions
Show diff stats
.gitlab-ci.yml
.travis.yml
| ... | ... | @@ -2,7 +2,6 @@ language: ruby |
| 2 | 2 | rvm: |
| 3 | 3 | # for 2.2 support we need to upgrade the pg gem |
| 4 | 4 | - 2.1.6 |
| 5 | -cache: bundler | |
| 6 | 5 | |
| 7 | 6 | sudo: false |
| 8 | 7 | addons: |
| ... | ... | @@ -19,9 +18,20 @@ addons: |
| 19 | 18 | - libsqlite3-dev |
| 20 | 19 | - libxslt1-dev |
| 21 | 20 | |
| 21 | +before_install: | |
| 22 | + - gem env | |
| 23 | + | |
| 24 | +# workaround for https://github.com/travis-ci/travis-ci/issues/4536 | |
| 25 | +before_install: | |
| 26 | + - export GEM_HOME=$PWD/vendor/bundle/ruby/2.1.0 | |
| 27 | + - gem install bundler | |
| 28 | +cache: bundler | |
| 29 | + | |
| 22 | 30 | before_script: |
| 23 | 31 | - mkdir -p tmp/pids log |
| 24 | - - bundle check || bundle install | |
| 32 | +# workaround for plugins with Gemfile | |
| 33 | + - perl -pi -e 's/cat .+ > \$gemfile/echo "source \\"https:\/\/rubygems.org\\"" > \$gemfile && cat \$source\/Gemfile >> \$gemfile/' script/noosfero-plugins | |
| 34 | + - perl -pi -e 's/--local --quiet/install --jobs=3 --retry=3/' script/noosfero-plugins | |
| 25 | 35 | - script/noosfero-plugins disableall |
| 26 | 36 | - bundle exec rake makemo &>/dev/null |
| 27 | 37 | # database | ... | ... |