-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
42 lines (33 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
sudo: required
notifications:
email: false
language: ruby
cache:
- bundler
- yarn
services:
- docker
- postgresql
env:
global:
- RAILS_ENV=test
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
- DATABASE_URL=postgres://[email protected]/test
before_install:
- sudo curl -L https://sourceforge.net/projects/mp3gain/files/mp3gain/1.5.2/mp3gain-1_5_2_r2-src.zip/download -o /usr/src/mp3gain.zip
- sudo mkdir /usr/src/mp3gain
- sudo mv /usr/src/mp3gain.zip /usr/src/mp3gain/
- sudo bash -c "cd /usr/src/mp3gain/ && unzip mp3gain.zip && make install "
script:
- yarn install
- bundle exec rake db:create db:migrate
- bundle exec rspec
- gem i codeclimate-test-reporter
- CODECLIMATE_REPO_TOKEN=$CC_TEST_REPORTER_ID codeclimate-test-reporter
# - if [ "$TRAVIS_BRANCH" == "master" ]; then
# sudo sh -c 'echo "deb https://apt.gemnasium.com stable main" > /etc/apt/sources.list.d/gemnasium.list';
# sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com E5CEAB0AC5F1CA2A ;
# sudo apt-get update ;
# sudo apt-get install gemnasium-toolbelt ;
# gemnasium --token $GEMNASIUM_TOKEN autoupdate run ;
# fi