I tried to add Travis VI with my public github repository. to use taglib-ruby user should install libtag1-dev package on there system. so i wrote my .travis.yml file like the below
language: ruby
rvm:
- 2.0.0
env:
- DB=mysql
before_install:
- sudo apt-get update
- sudo apt-get install -y libtag1-dev
script:
- RAILS_ENV=test bundle exec rake db:migrate --trace
- bundle exec rake db:test:prepare
- bundle exec rspec spec/
before_script:
- mysql -e 'create database my_app_test'
but travis always failed by telling the following
Installing rack-cache 1.2
Installing rack-test 0.6.2
Installing rack-ssl 1.3.4
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/travis/.rvm/rubies/ruby-2.0.0-p451/bin/ruby extconf.rb
checking for main() in -lstdc++... yes
checking for main() in -ltag... no
You must have taglib installed in order to use taglib-ruby.
Debian/Ubuntu: sudo apt-get install libtag1-dev
Fedora/RHEL: sudo yum install taglib-devel
Brew: brew install taglib
MacPorts: sudo port install taglib
I resolved using the below
language: ruby
rvm:
- 2.0.0
env:
- DB=postgresql
before_install:
- sudo apt-get update
- sudo apt-get install -y libtag1-dev
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- "bundle exec rake db:migrate"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.