diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-12 22:35:49 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-12 22:35:49 +0100 |
commit | a029e42be1e62f0142870625bc4c940c9a85d816 (patch) | |
tree | c8278cb9b6954ac48fa5a6798573a4f61433924e | |
parent | ae038b3d8734cf0c228e5a7c16b18245096ae776 (diff) | |
download | bundler-a029e42be1e62f0142870625bc4c940c9a85d816.tar.gz |
Try as root
-rw-r--r-- | .azure-pipelines/steps-linux.yml | 10 | ||||
-rw-r--r-- | azure-pipelines.yml | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/.azure-pipelines/steps-linux.yml b/.azure-pipelines/steps-linux.yml index 26df58c687..f9e63c7e88 100644 --- a/.azure-pipelines/steps-linux.yml +++ b/.azure-pipelines/steps-linux.yml @@ -1,27 +1,27 @@ steps: - script: | - bin/rake -E 'module ::Bundler; VERSION = "0.0.0"; end' override_version + sudo -u ruby bin/rake -E 'module ::Bundler; VERSION = "0.0.0"; end' override_version displayName: Override version - script: | - bin/rake spec:deps + sudo -u ruby bin/rake spec:deps displayName: Install dependencies - script: | - bin/rake spec:rubygems:clone_rubygems_3.0.2 + sudo -u ruby bin/rake spec:rubygems:clone_rubygems_3.0.2 displayName: Clone rubygems - script: | - gem install --no-document --conservative rspec_junit_formatter + sudo -u ruby gem install --no-document --conservative rspec_junit_formatter displayName: Install test results formatter - script: | - ruby -r rspec_junit_formatter bin/rspec --format progress --format RspecJunitFormatter -o rspec/bundler-junit-results.xml + sudo -u ruby -r rspec_junit_formatter bin/rspec --format progress --format RspecJunitFormatter -o rspec/bundler-junit-results.xml displayName: Run specs diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e771889b9d..8147223131 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -8,8 +8,6 @@ jobs: - job: RawLinux pool: vmImage: 'ubuntu-16.04' - variables: - VSTS_SETUP_DOCKERGROUP: true container: registry.gitlab.com/deivid-rodriguez/docker/ruby:2.6.1-ubuntu steps: - template: .azure-pipelines/steps-linux.yml @@ -17,11 +15,9 @@ jobs: - job: RVM pool: vmImage: 'ubuntu-16.04' - variables: - VSTS_SETUP_DOCKERGROUP: true container: registry.gitlab.com/deivid-rodriguez/docker/rvm:2.6.1 steps: - - script: rvm use 2.6.1 + - script: sudo -u ruby rvm use 2.6.1 displayName: Switch to a ruby - template: .azure-pipelines/steps-linux.yml |