Skip to content

Commit

Permalink
ci automation
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jul 23, 2017
1 parent 28f81f9 commit 57cbbf1
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ tmp/
coverage
.nyc_output
travis-keys.sh
ccxt.wiki/
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ tmp/
coverage
.nyc_output
travis-keys.sh
ccxt.wiki/
4 changes: 2 additions & 2 deletions ccxt.es5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//-----------------------------------------------------------------------------

var version = '1.1.55'
var version = '1.1.56'
var isNode = (typeof window === 'undefined')

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion ccxt.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class EndpointNotAvailableError extends NotAvailableError {}
class OrderBookNotAvailableError extends NotAvailableError {}
class TickerNotAvailableError extends NotAvailableError {}

$version = '1.1.55';
$version = '1.1.56';

class Market {

Expand Down
2 changes: 1 addition & 1 deletion ccxt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
'TickerNotAvailableError',
]

__version__ = '1.1.55'
__version__ = '1.1.56'

# Python 2 & 3
import base64
Expand Down
8 changes: 5 additions & 3 deletions export-markets.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const util = require ('util')
let markets
let verbose = false

let wikiPath = 'ccxt.wiki'

try {

markets = require ('./config')
Expand Down Expand Up @@ -107,8 +109,8 @@ let changeInFile = (filename) => {
}

changeInFile ('README.md')
changeInFile ('../ccxt.wiki/Exchange-Markets.md')
changeInFile ('../ccxt.wiki/Manual.md')
changeInFile (wikiPath + '/Exchange-Markets.md')
changeInFile (wikiPath + '/Manual.md')

// console.log (typeof countries)
// console.log (countries)
Expand Down Expand Up @@ -178,7 +180,7 @@ marketsByCountries = marketsByCountries.sort ((a, b) => {
lines[1] = headerLine.join ('|')
lines = lines.map (line => '|' + line + '|').join ("\n")
let result = "The ccxt library currently supports the following cryptocurrency exchange markets and trading APIs:\n\n" + lines + "\n\n"
let filename = '../ccxt.wiki/Exchange-Markets-By-Country.md'
let filename = wikiPath + '/Exchange-Markets-By-Country.md'
fs.truncateSync (filename)
fs.writeFileSync (filename, result)
// console.log (result)
Expand Down
7 changes: 6 additions & 1 deletion vss.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ let version = config.version

console.log ('Old version: ', version)
let [ major, minor, patch ] = version.split ('.')
patch = (parseInt (patch) + 1).toString ()

// we don't increment it here anymore, because
// npm version patch will be explicitly called before

// patch = (parseInt (patch) + 1).toString ()

version = [ major, minor, patch ].join ('.')
console.log ('New version: ', version)

Expand Down

0 comments on commit 57cbbf1

Please sign in to comment.