Commit c58c653b63b0a87cafabfb4513d9591c409af742
1 parent
36dfeecb
Exists in
staging
and in
32 other branches
travis: ensure correct environment
Showing
1 changed file
with
10 additions
and
6 deletions
Show diff stats
.travis.yml
@@ -6,15 +6,19 @@ notifications: | @@ -6,15 +6,19 @@ notifications: | ||
6 | template: | 6 | template: |
7 | - "%{repository_slug} %{branch} %{commit} %{commit_subject} - %{result} %{build_url}" | 7 | - "%{repository_slug} %{branch} %{commit} %{commit_subject} - %{result} %{build_url}" |
8 | 8 | ||
9 | -# trusty constainers take more time to start | ||
10 | -#dist: trusty | 9 | +# Ensure Container-based environment, as others can have some random failures |
10 | +# specially with different Firefox versions and selenium tests. | ||
11 | +# E.g. https://travis-ci.org/noosfero/noosfero/jobs/122918772#L1308 | ||
12 | +# | ||
13 | +# Also container-based environments have the fatest boot times and | ||
14 | +# are the only one with cache available for public projects. | ||
15 | +# See https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments | ||
16 | +sudo: false | ||
17 | +cache: bundler | ||
11 | 18 | ||
12 | language: ruby | 19 | language: ruby |
13 | rvm: | 20 | rvm: |
14 | - - 2.2 | ||
15 | - # ruby 2.3 works but isn't stable on travis | ||
16 | - | ||
17 | -cache: bundler | 21 | + - 2.3.0 |
18 | 22 | ||
19 | addons: | 23 | addons: |
20 | apt: | 24 | apt: |