mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
35 lines
1.6 KiB
YAML
35 lines
1.6 KiB
YAML
language: ruby
|
|
cache: bundler
|
|
env:
|
|
- DB=postgresql
|
|
before_install:
|
|
- "wget -N http://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip -P ~/"
|
|
- "unzip ~/chromedriver_linux64.zip -d ~/"
|
|
- "rm ~/chromedriver_linux64.zip"
|
|
- "sudo mv -f ~/chromedriver /usr/local/share/"
|
|
- "sudo chmod +x /usr/local/share/chromedriver"
|
|
- "sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver"
|
|
- "bundle config set without 'development staging production'"
|
|
- "bundle config set deployment '[secure]'"
|
|
before_script:
|
|
- "cp config/application.yml.sample config/application.yml"
|
|
- "echo \"openssl_config_path: 'test/fixtures/files/test_ca/openssl.cnf'\" >> config/application.yml"
|
|
- "echo \"crl_dir: 'test/fixtures/files/test_ca/crl'\" >> config/application.yml"
|
|
- "echo \"crl_path: 'test/fixtures/files/test_ca/crl/crl.pem'\" >> config/application.yml"
|
|
- "echo \"ca_cert_path: 'test/fixtures/files/test_ca/certs/ca.crt.pem'\" >> config/application.yml"
|
|
- "echo \"ca_key_path: 'test/fixtures/files/test_ca/private/ca.key.pem'\" >> config/application.yml"
|
|
- "echo \"ca_key_password: 'password'\" >> config/application.yml"
|
|
- "cp config/database_travis.yml config/database.yml"
|
|
- "bundle exec rake db:setup:all"
|
|
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter"
|
|
- "chmod +x ./cc-test-reporter"
|
|
- "./cc-test-reporter before-build"
|
|
after_script:
|
|
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
|
|
script:
|
|
- "bundle exec rails test test/*"
|
|
services:
|
|
- postgresql
|
|
addons:
|
|
postgresql: "9.4"
|
|
chrome: stable
|