This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
61 lines (56 loc) · 2.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
################
# CI Workflow:
# feature development, trigger by `git push`:
# test -> code_audit(code_security_audit and code_quality_audit)
#
# feature deploy, trigger by `git push --tags`
# test -> deploy
#
# Stages:
# - test: run `rake test`
# - code_audit: run `code_quality security_audit` and `code_quality quality_audit`
# - deploy: auto build and upload a gem package to rubygems.org after `git push --tags`
#
# Principle:
# - fail fast
# - done is better than perfect
################
stages:
- test
- code_audit
- deploy
sudo: false
language: ruby
rvm:
- 2.4.4
- 2.5.3
before_install:
- gem install bundler
- git submodule update --init --recursive
- ./install_lib.sh
# config GitHub OAuth Token
env:
global:
secure: ENV_GLOBAL_SECURE
jobs:
include:
- stage: code_audit
if: branch != master
install: gem install code_quality --no-ri --no-rdoc
script:
- bundle install # to generate Gemfile.lock
- code_quality security_audit:bundler_audit
- code_quality quality_audit fail_fast=false generate_index=true lowest_score=80 rubocop_max_offenses=200
# automatically release Ruby gem to RubyGems after a successful build with `git push --tags`
# refs: https://docs.travis-ci.com/user/deployment/rubygems/
# 1. how to get your api_key: https://rubygems.org/profile/edit
# 2. intall `travis` cli: $ gem install travis
# 3. get encrypted api_key secure: $ travis setup rubygems
deploy:
- provider: rubygems
api_key:
secure: oAeCF8k1NW3a94NXJoQs6kBRJG5TY9zdGJAVgvMxFuEnDVgjmuoKceTLdeQzKin+2PS2KRzGhT5E27wrNvCnQGfjKmQA9kPDqSQeJNnRBkbTjxKwkbi2P4g2EE1wR5PYgKq0mJ/4BMxVWZOleYT+ihwMiZDzoadAglbs5PSlC1HNnaQbnPQ3nfN1iG7o1KXdva5Bw4mcm86QPDrSoR9Fl/7ZJvteVouvC71Qt4QhkcaVV3piDUDM6JRbxa6ydsDOV6zq4nZP7UwufgK1GIpVNiLnVZtL3jCndY84a4MYz5sgBbvSEmSVbF1OdrPgllCV2wnauOtuzTqRYF5ATYyM3Hx58jYLUyd6YwXQrEoirHCyt2XaKSF1r2f9zvllVdXSCj+6/CJ70HkHrJTO3K2C9/uZEYIfNbTFZjMASWKyB52Vch5dFmlTloI/eLF2vp5jjY4iYTInPeb59UzqyBkMT4jtwconbre8eVKW/9qHTdTJDKQqmp4jKD+raeia/FbVaOTKyZ9nWxSQI3mVy49diK2j+Pd1LVw3nXY9zMz5f5W/D/zyGVf/Xt6gRNo0aj8UdMvZJm3awvruwQpJTa2tcp5m/iv74JzsFMdgit1pEbimF6xs7Ph8wVAI7eKVctZtI/zeaw+nv3mcg3+/GNGzSSj0RsjdXetrFSh6eh+qfL0=
gem: bitcoin-secp256k1
on:
tags: true
repo: cryptape/ruby-bitcoin-secp256k1