Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Fix ci (#16)
Browse files Browse the repository at this point in the history
FIX: CI
  • Loading branch information
Overtorment committed Jan 13, 2018
1 parent 5205b2c commit ae68bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
28 changes: 3 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:8.5.0
machine: true

working_directory: ~/Cashier-BTC

Expand All @@ -12,31 +11,10 @@ jobs:
- run:
command: |
echo Setting up
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs couchdb
npm install
cp config.js.dev config.js
sudo apt-get install --yes build-essential curl git
sudo apt-get install --yes python-software-properties python g++ make
sudo apt-get install -y erlang-dev erlang-manpages erlang-base-hipe erlang-eunit erlang-nox erlang-xmerl erlang-inets
sudo apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool
cd ~/
wget http://ftp.fau.de/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz
tar xvzf apache-couchdb-*
cd apache-couchdb-*
./configure && make
sudo make install
sudo useradd -d /var/lib/couchdb couchdb || true
sudo chown -R couchdb: /var/lib/couchdb /var/log/couchdb || true
sudo chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb || true
sudo chmod 0770 /usr/local/var/{lib,log,run}/couchdb/ || true
sudo chmod 664 /usr/local/etc/couchdb/*.ini || true
sudo chmod 775 /usr/local/etc/couchdb/*.d || true
cd /etc/init.d
sudo ln -s /usr/local/etc/init.d/couchdb couchdb || true
sudo /etc/init.d/couchdb start || true
sudo update-rc.d couchdb defaults || true
sudo service couchdb restart || true
sleep 5
curl http://127.0.0.1:5984/ || true
curl -s -X PUT http://localhost:5984/_config/admins/user -d '"pass"' || true
curl -s -X PUT http://user:pass@localhost:5984/cashier-btc || true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "Igor Korsakov",
"scripts": {
"postinstall": "mkdir qr && chmod 777 qr",
"test": "./node_modules/.bin/standard && ./node_modules/.bin/mocha --exit tests/*",
"test": "nodejs ./node_modules/.bin/standard && nodejs ./node_modules/.bin/mocha --exit tests/*",
"clean": "rm -r -f ./node_modules/ && rm -r -f ./qr/"
},
"dependencies": {
Expand Down

0 comments on commit ae68bc0

Please sign in to comment.