Commit 059e63bfc0d979d9f86b426bfea13848d6ee6452
1 parent
69c9f5e5
Exists in
master
and in
29 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
1 | before_script: | 1 | before_script: |
2 | - mkdir -p tmp/pids log | 2 | - mkdir -p tmp/pids log |
3 | - bundle check || bundle install | 3 | - bundle check || bundle install |
4 | +# workaround for plugins with Gemfile | ||
5 | + - perl -pi -e 's/--local //' script/noosfero-plugins | ||
4 | - script/noosfero-plugins disableall | 6 | - script/noosfero-plugins disableall |
5 | - bundle exec rake makemo &>/dev/null | 7 | - bundle exec rake makemo &>/dev/null |
6 | # database | 8 | # database |
.travis.yml
@@ -2,7 +2,6 @@ language: ruby | @@ -2,7 +2,6 @@ language: ruby | ||
2 | rvm: | 2 | rvm: |
3 | # for 2.2 support we need to upgrade the pg gem | 3 | # for 2.2 support we need to upgrade the pg gem |
4 | - 2.1.6 | 4 | - 2.1.6 |
5 | -cache: bundler | ||
6 | 5 | ||
7 | sudo: false | 6 | sudo: false |
8 | addons: | 7 | addons: |
@@ -19,9 +18,20 @@ addons: | @@ -19,9 +18,20 @@ addons: | ||
19 | - libsqlite3-dev | 18 | - libsqlite3-dev |
20 | - libxslt1-dev | 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 | before_script: | 30 | before_script: |
23 | - mkdir -p tmp/pids log | 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 | - script/noosfero-plugins disableall | 35 | - script/noosfero-plugins disableall |
26 | - bundle exec rake makemo &>/dev/null | 36 | - bundle exec rake makemo &>/dev/null |
27 | # database | 37 | # database |