-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
47 lines (37 loc) · 1.1 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
43
44
45
46
47
language: ruby
services:
- postgresql
addons:
postgresql: "9.4"
rvm:
- 2.5.3
env:
global:
- RAILS_ENV=test
cache:
bundler: true
directories:
- node_modules
yarn: true
before_install:
- gem install bundler -v 1.17.1
install:
- git clone https://github.com/bitcoin-core/secp256k1.git && cd secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make && ./tests && sudo make install && cd ..
- bundle install
- nvm install 8.11.2
- node -v
- npm i -g yarn
- yarn
before_script:
# setup db
- psql -c 'create database "re-birth_test";' -U postgres
- cp .env.test.local.travis .env.test.local
# run code quality audit
- gem install code_quality
- code_quality security_audit bundler_audit_options="--ignore CVE-2020-8164 CVE-2020-8166 CVE-2020-15169 CVE-2020-5267 CVE-2020-8167 CVE-2020-8162 CVE-2020-8165 CVE-2020-26247"
- code_quality quality_audit fail_fast=false generate_index=true skip_lowest_score=89 rubocop_max_offenses=400
script:
- bundle exec rails db:migrate
- bundle exec rails spec
after_success:
- bash <(curl -s https://codecov.io/bash)