.travis.yml 1.15 KB
Newer Older
1
language: ruby
2

3
rvm:
4
  - 2.2
5
  - 2.1
Jonne Haß's avatar
Jonne Haß committed
6

7
env:
8
  - DB=postgresql BUILD_TYPE=cucumber
9
  - DB=mysql BUILD_TYPE=cucumber
10 11
  - DB=postgresql BUILD_TYPE=other
  - DB=mysql BUILD_TYPE=other
12

13
sudo: false
Jonne Haß's avatar
Jonne Haß committed
14 15 16
cache:
  bundler: true
  directories:
Jonne Haß's avatar
Jonne Haß committed
17
    - app/assets/images
18 19 20 21

branches:
  only:
    - 'master'
Jonne Haß's avatar
Jonne Haß committed
22
    - 'stable'
23 24
    - 'develop'

25 26 27
before_install:
  - gem install bundler
  - mkdir travis-phantomjs
Dennis Schubert's avatar
Dennis Schubert committed
28
  - wget http://cifiles.diasporafoundation.org/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
29 30 31
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

32
bundler_args: "--deployment --without development production --with mysql postgresql --jobs 3 --retry 3"
33

Jonne Haß's avatar
Jonne Haß committed
34
script: "./script/ci/build.sh"
35

36
notifications:
37 38
  irc:
    channels:
39
      - secure: YvYkeTAw+5oOl/RaXVwu7JkKGNWPoFosNQRmLvJkBFbWzZ1s5LZD1u3+Qj819bT3lGzJu9pxmJg765IRYrGWmBi4mcAV3dpO6qowVdFTcorf0JsnLw3Kvkga9rrDunsRNr21KTAQqHOO5mKUzw9DtMzd52BiWuZwIj3xcl72gQI=
40
    template:
41
      - "%{repository_slug}#%{commit} (%{branch} - %{commit_subject}): %{message} %{build_url}"