forked from nervosnetwork/ckb-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 854 Bytes
/
.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
sudo: true
dist: xenial
jobs:
include:
- language: ruby
services:
- postgresql
- redis-server
addons:
postgresql: "10"
rvm:
- 2.6.4
env:
global:
- RAILS_ENV=test
cache:
bundler: true
before_install:
- gem install bundler -v 2.0.1
- sudo apt-get update
- sudo apt-get install -y libsodium-dev
install:
- git clone https://github.com/bitcoin-core/secp256k1.git && cd secp256k1 && ./autogen.sh && ./configure && make && ./tests && sudo make install && cd ..
- bundle install
before_script:
- psql -c 'create database "ckb_explorer_test";' -U postgres
- cp .env.test.local.travis .env.test.local
script:
- bundle exec rails db:migrate
- CI=true bundle exec rails test