-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First try to fix installation for plantingjs django app.
- Loading branch information
Dariusz Niemczyk
committed
Feb 26, 2017
1 parent
d189612
commit 0e9bf2d
Showing
7 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ coverage/ | |
*.pyc | ||
settings.json | ||
.tern-port | ||
github_deploy_key | ||
github_deploy_key.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
language: node_js | ||
node_js: | ||
- "4.2.4" | ||
- node | ||
install: | ||
- "npm install" | ||
- npm install | ||
script: | ||
- "npm run build" | ||
- "npm run lint" | ||
- "npm run test" | ||
- npm run lint | ||
- npm run test | ||
- if [ "$TRAVIS_BRANCH" == "master" ]; then | ||
npm start; | ||
bash travis_deploy.sh; | ||
else | ||
npm run build; | ||
fi | ||
after_success: | ||
- "npm run codecov" | ||
- npm run codecov | ||
env: | ||
global: | ||
- GH_REF: komitywa/plantingjs.git |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "plantingjs", | ||
"version": "0.0.1", | ||
"bugs": "https://github.com/komitywa/plantingjs/issues", | ||
"license": "MIT", | ||
"scripts": {}, | ||
"author": { | ||
"name": "Komitywa", | ||
"email": "[email protected]", | ||
"url": "http://komitywa.org" | ||
}, | ||
"private": true, | ||
"main": "./js/main.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e # exit with nonzero exit code if anything fails | ||
|
||
openssl aes-256-cbc -K $encrypted_7a9f37839964_key -iv $encrypted_7a9f37839964_iv -in github_deploy_key.enc -out github_deploy_key -d | ||
chmod 600 github_deploy_key | ||
eval `ssh-agent -s` | ||
ssh-add github_deploy_key | ||
|
||
cd dist | ||
git init | ||
git config user.name "Travis CI" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m "Automatic deploy of compiled library" | ||
git push --force --quiet "[email protected]:${GH_REF}" master:autodeploy > /dev/null 2>&1 |