Blame view

.travis.yml 2.8 KB
1c71985e   Braulio Bhavamitra   travis: notify to...
1
2
notifications:
  irc:
f415a9ec   Braulio Bhavamitra   travis: shorten I...
3
    channels:
6c9f1b36   Evandro Jr   Removing Gemfile....
4
      - "chat.freenode.net#noosfero-serpro"
f415a9ec   Braulio Bhavamitra   travis: shorten I...
5
6
    template:
      - "%{repository_slug} %{branch} %{commit} %{commit_subject} - %{result} %{build_url}"
1c71985e   Braulio Bhavamitra   travis: notify to...
7

c58c653b   Braulio Bhavamitra   travis: ensure co...
8
9
10
11
12
13
14
15
16
# Ensure Container-based environment, as others can have some random failures
# specially with different Firefox versions and selenium tests.
# E.g. https://travis-ci.org/noosfero/noosfero/jobs/122918772#L1308
#
# Also container-based environments have the fatest boot times and
# are the only one with cache available for public projects.
# See https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
sudo: false
cache: bundler
22d4574a   Braulio Bhavamitra   travis: comment a...
17

652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
18
19
language: ruby
rvm:
b9867847   Braulio Bhavamitra   travis,circle: Up...
20
  - 2.3.1
8c31af4c   Braulio Bhavamitra   CI: use new docke...
21

011d76b5   Braulio Bhavamitra   elasticsearch: fi...
22
23
24
25
services:
  - postgresql
  - elasticsearch

8c31af4c   Braulio Bhavamitra   CI: use new docke...
26
27
28
addons:
  apt:
    packages:
8c31af4c   Braulio Bhavamitra   CI: use new docke...
29
30
      - tango-icon-theme
      - pidgin-data
b03d4c32   Braulio Bhavamitra   travis: upload sn...
31
32
33
  artifacts:
    paths:
      - $(ls tmp/artifact* | tr "\n" ":")
652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
34

afd98f83   Evandro Junior   Added specific th...
35
36
37
git:
  submodules: false

059e63bf   Braulio Bhavamitra   CI: test plugins ...
38
39
# workaround for https://github.com/travis-ci/travis-ci/issues/4536
before_install:
afd98f83   Evandro Junior   Added specific th...
40
  - rm -f Gemfile.lock
190f639e   Braulio Bhavamitra   travis: fix ruby ...
41
  - export GEM_HOME=$PWD/vendor/bundle/ruby/2.2.0
059e63bf   Braulio Bhavamitra   CI: test plugins ...
42
  - gem install bundler
afd98f83   Evandro Junior   Added specific th...
43
44
  - sed -i 's/softwarepublico.gov.br\/gitlab/github.com/' .gitmodules
  - git submodule update --init --recursive
29151d66   Leandro Santos   merging with master
45
#cache: bundler
059e63bf   Braulio Bhavamitra   CI: test plugins ...
46

652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
47
before_script:
267ced6b   Leandro Santos   create cache fold...
48
  - mkdir -p tmp/{pids,cache} log cache
010e1ee5   Braulio Bhavamitra   CI: compile trans...
49
  - script/noosfero-plugins disableall
b25546b4   Braulio Bhavamitra   travis-ci: commen...
50
  #- bundle exec rake makemo &>/dev/null
652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
51
52
53
# database
  - cp config/database.yml.travis config/database.yml
  - psql -c 'create database myapp_test;' -U postgres
373433af   Braulio Bhavamitra   travis: move back...
54
  - bundle exec rake db:schema:load
8c31af4c   Braulio Bhavamitra   CI: use new docke...
55
  - bundle exec rake db:migrate &>/dev/null
652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
56
57

env:
1bd0b110   Braulio Bhavamitra   selenium: optiona...
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
  global:
    - LANG=en
  matrix:
    - TASK=test:api
    - TASK=test:units
    - TASK=test:functionals
    - TASK=test:integration
    - SLICE=1/2 TASK=cucumber
    - SLICE=2/2 TASK=cucumber
    - SLICE=1/4 TASK=selenium
    - SLICE=2/4 TASK=selenium
    - SLICE=3/4 TASK=selenium
    - SLICE=4/4 TASK=selenium
    - SLICE=1/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=2/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=3/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=4/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=5/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    # chrome hanging on travis
    #- SLICE=1/4 TASK=selenium SELENIUM_DRIVER=chrome
    #- SLICE=2/4 TASK=selenium SELENIUM_DRIVER=chrome
    #- SLICE=3/4 TASK=selenium SELENIUM_DRIVER=chrome
    #- SLICE=4/4 TASK=selenium SELENIUM_DRIVER=chrome

matrix:
  allow_failures:
    - env: SLICE=1/4 TASK=selenium SELENIUM_DRIVER=chrome
    - env: SLICE=2/4 TASK=selenium SELENIUM_DRIVER=chrome
    - env: SLICE=3/4 TASK=selenium SELENIUM_DRIVER=chrome
    - env: SLICE=4/4 TASK=selenium SELENIUM_DRIVER=chrome
652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
88
89

script:
28720598   Evandro Junior   Makes travis run ...
90
91
  - ./script/ci
   Redundant, but makes life easier instead of counting each failling test, this summarizes everything
652e8ffa   Braulio Bhavamitra   CI: Use new gitla...
92
  - bundle exec rake $TASK