10000 Master by kam8818 · Pull Request #1154 · nodegit/nodegit · GitHub
[go: up one dir, main page]

Skip to content
Closed

Master #1154

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1991 commits
Select commit Hold shift + click to select a range
f708658
Mark blob wrappers as self-freeing
srajko Mar 17, 2016
acd9bed
Add self-freeing diagnostic instance counting and leak test
srajko Mar 22, 2016
93fd4f2
Passing correct value for selfFreeing
srajko Mar 18, 2016
edbb2c8
Force duplication of libgit objects when it is convenient
implausible Mar 22, 2016
2c95f8f
Add `toBool` Combyne filter
Mar 23, 2016
4790360
Use `toBool` instead of `if/else` for `selfFreeing`
Mar 23, 2016
11a17cb
Add shouldDuplicate as arg-specific behavior
srajko Mar 23, 2016
4283436
Add test for shouldDuplicate
srajko Mar 23, 2016
74e85a5
Switch from strdup to memcpy to faithfully copy all bytes and prevent…
tylerc Mar 24, 2016
a87b573
Diff.blobToBuffer: consistently use Buffer.byteLength
tylerchurch Mar 24, 2016 10BC0
487aa31
Merge pull request #958 from srajko/object-leak-fix
johnhaley81 Mar 24, 2016
75b015d
Merge pull request #964 from tylerchurch/patch-2
johnhaley81 Mar 24, 2016
7cc1a41
Correct Diff.blobToBuffer documentation.
tylerc Mar 24, 2016
c866391
Add some comments explaining the switch between strdup and malloc/mem…
tylerc Mar 24, 2016
838c1ad
Update Diff.blobToBuffer documentation to make jshint happy.
tylerc Mar 24, 2016
033e684
Merge pull request #966 from tylerchurch/fix-strdup-crash
johnhaley81 Mar 24, 2016
39dfc74
Merge pull request #967 from tylerchurch/blobToBuffer-documentation-fix
johnhaley81 Mar 24, 2016
1ad0ef2
#Async4Lyfe
joshaber Mar 25, 2016
ffec49b
Update the test.
joshaber Mar 25, 2016
1c7ad24
Added error when libstdc++ is missing and info how to resolve
martinheidegger Mar 28, 2016
601cacb
Fixed package.json for windows
martinheidegger Mar 28, 2016
a606a99
Grammatical fix in error message and EOL
martinheidegger Mar 28, 2016
38e4467
Merge pull request #972 from martinheidegger/feature/install-error-me…
johnhaley81 Mar 28, 2016
a32265c
Merge pull request #970 from nodegit/async-path-is-ignored
johnhaley81 Mar 28, 2016
fe433ef
Bump to 0.12.0
Mar 28, 2016
ec97dbc
Add support for git_repository__cleanup
srajko Mar 28, 2016
045ec0e
Add support for thread safety on async actions only
srajko Mar 24, 2016
efbd8e1
Merge pull request #968 from srajko/thread-safety-async-only
johnhaley81 Mar 29, 2016
1a3610d
Merge pull request #975 from srajko/repository-cleanup
johnhaley81 Mar 29, 2016
86f3c6d
Mark references as self-freeing
srajko Mar 29, 2016
a0d546c
Duplicate returned oids
srajko Mar 29, 2016
f2eafe2
Move postinstall script from bash to node
Mar 30, 2016
8ac888d
Merge pull request #978 from nodegit/fix-windows-postinstall
johnhaley81 Mar 30, 2016
6a65c05
Move postinstall script from bash to node
Mar 30, 2016
527de74
Bump to 0.12.1
Mar 30, 2016
46fbd50
Merged v0.12.1 into master
Mar 30, 2016
89915d2
Merge pull request #977 from srajko/reference-leak-fix
johnhaley81 Mar 30, 2016
593f9d5
build: build and publish binaries for 32-bit systems
SEAPUNK Apr 1, 2016
920619e
Make remotes self-freeing
srajko Apr 1, 2016
416d47f
Add remote / refspec tests
srajko Apr 1, 2016
25afe8a
Merge pull request #980 from SEAPUNK/master
tbranyen Apr 4, 2016
3d3d0ba
Use default VM image on AppVeyor
Apr 6, 2016
f4c39d7
Fix revwalk test to pass oid instead of commit
srajko Apr 7, 2016
6580ecb
Fix submodule test
srajko Apr 7, 2016
8a63e66
Merge pull request #984 from nodegit/update-appveyor-vs2015
johnhaley81 Apr 7, 2016
2a50623
Add `Repository#refreshIndex`
Apr 7, 2016
d912b6c
Merge pull request #981 from srajko/remote-leak-fix
johnhaley81 Apr 7, 2016
5bd483b
Bump to 0.12.2
Apr 7, 2016
50a620d
Readd throttling
srajko Mar 8, 2016
c280d38
Remove HandleScope from Set
srajko Mar 8, 2016
b0089b0
Reintroduce HasCallback check when clearing payload
srajko Mar 8, 2016
6ebc360
Merge pull request #986 from nodegit/add-refresh-index
johnhaley81 Apr 8, 2016
0c1be26
Remove `Repository#openIndex`
Apr 7, 2016
786add2
Merge pull request #989 from nodegit/remove-repo-open-index
johnhaley81 Apr 8, 2016
2e0e6de
Make `Remote.create` async
Apr 8, 2016
f645360
Merge pull request #990 from nodegit/async-remote-create
johnhaley81 Apr 8, 2016
1cd6320
Make index methods async
Mar 26, 2016
4c8f601
First round of test fixes
Mar 27, 2016
367e053
Fix "commit on head on empty repo with createCommitOnHead" test
Apr 8, 2016
e958562
Fix some formatting
Apr 8, 2016
615ef49
Fix staging tests
Apr 8, 2016
a0fb5d4
Sorted things in `descriptor.json` alphabetically
Apr 8, 2016
c861c81
Fix segfault in `Branch.name`
Apr 9, 2016
8427b8e
Merge pull request #944 from srajko/throttle-crash-fix
johnhaley81 Apr 9, 2016
e15808a
Factor out base class for structs / classes with cType
srajko Apr 6, 2016
f67de63
Merge pull request #991 from nodegit/fix-branch-name
johnhaley81 Apr 9, 2016
f4e91e6
Merge pull request #971 from nodegit/async-index
johnhaley81 Apr 11, 2016
b342f01
Merge pull request #983 from srajko/wrapper-base-class
johnhaley81 Apr 11, 2016
591a6ff
Fix docstring for TreeEntry#getBlob
cjlarose Apr 14, 2016
72433da
Merge pull request #995 from cjlarose/master
johnhaley81 Apr 14, 2016
3813abb
Fix a typo in function call
ad-si Apr 18, 2016
d5cc79e
Merge pull request #998 from adius/patch-1
johnhaley81 Apr 18, 2016
d6f0827
Correct index.conflictAdd to have optional parameters
implausible Apr 18, 2016
377366c
Merge pull request #997 from nodegit/make-conflict-add-nullable
implausible Apr 18, 2016
a336802
Added git_diff_merge
Apr 19, 2016
ec56e43
Merge pull request #1000 from smith-kyle/diff-merge
johnhaley81 Apr 19, 2016
0d950ea
Removing libgit2 as a submodule
cbargren Mar 28, 2016
94f7579
Beautifly v0.23.4.json
Mar 28, 2016
138f398
Rename libgit2 docs json to just `libgit2-docs.json`
Apr 25, 2016
eab9618
Update to libgit2 v0.24.1
Apr 26, 2016
35580b5
Sorted file sources in `libgit2.gyp`
Apr 21, 2016
49dcb78
libgit2 builds now
Apr 25, 2016
e4e495f
NodeGit builds... AGAIN!!!
Apr 26, 2016
8cca9b4
Fixing checkout test
cbargren Apr 6, 2016
ad097c7
Make graph error test more resilient.
Apr 26, 2016
76fb03c
Fix remote tests
Apr 26, 2016
295f507
Fix `TreeEntry`
Apr 26, 2016
75e508b
Merge pull request #1010 from nodegit/update-libgit2-v0.24.1
johnhaley81 Apr 27, 2016
099ecab
Use diff options even if the commit has no parent
Apr 26, 2016
6adcde3
Added more Diff.merge tests
Apr 25, 2016
2139c33
Fix annotated_commit annotation
srajko Apr 25, 2016
5aa7822
Fix git_remote_stats ownedByThis descriptor
srajko Apr 25, 2016
19cc49e
Merge pull request #1004 from nodegit/descriptor-fixes
johnhaley81 Apr 27, 2016
859a17a
Fix memory leak on ignoreInit
srajko Apr 25, 2016
51a760c
Merge pull request #1005 from nodegit/ignoreinit-leak-fix
johnhaley81 Apr 27, 2016
e5ee84f
Merge pull request #1007 from smith-kyle/diff-merge-tests
johnhaley81 Apr 27, 2016
395602e
Move reflog entry methods to ReflogEntry
srajko Apr 26, 2016
f5280aa
Merge pull request #1008 from smith-kyle/diff-options
johnhaley81 Apr 27, 2016
10BC0
c6ecb24
Mark oid as selfFreeing
srajko Apr 25, 2016
35b2940
Mark functions returning owned oids
srajko Apr 25, 2016
2e6b27c
Mark all fields as owned
srajko Apr 25, 2016
0f9e542
Add oid leak tests
srajko Apr 27, 2016
206d27d
Merge pull request #1006 from nodegit/oid-leak-fix
srajko Apr 27, 2016
4cb018e
Revert "Merge pull request #1006 from nodegit/oid-leak-fix"
srajko Apr 27, 2016
d05cc66
Move reflog entry methods to ReflogEntry
srajko Apr 26, 2016
6a3cc46
Add Node v6 support
Apr 27, 2016
b0d7488
Merge pull request #1013 from srajko/reflog-entry
johnhaley81 Apr 27, 2016
ac19506
Move git_tree_entry_free descriptor to correct group
srajko Apr 27, 2016
4d94c1f
Mark oid as selfFreeing
srajko Apr 25, 2016
d4ea645
Mark functions returning owned oids
srajko Apr 25, 2016
4ee0bc8
Mark all fields as owned
srajko Apr 25, 2016
3643cde
Add oid leak tests
srajko Apr 27, 2016
1799ae1
Merge pull request #1011 from nodegit/add-node-6-support
johnhaley81 Apr 27, 2016
1f02d42
Merge pull request #1014 from srajko/tree-entry-fix
johnhaley81 Apr 27, 2016
ebc73a8
Merge pull request #1015 from srajko/oid-leak-fix
johnhaley81 Apr 27, 2016
c5806d8
Sort scripts
cbargren Apr 28, 2016
6b5ee5b
Adding babel and babel scripts
cbargren Apr 28, 2016
d31e7c1
Fixing actually broken code found by es6
cbargren Apr 28, 2016
4a03d24
Remove libgit2 directory
Apr 29, 2016
d79d1b1
Add libgit2 as a submodule
Apr 29, 2016
26ca8b4
Move promisification of `child_process.exec` to util file
Apr 29, 2016
68208c9
ES6 support for JSHint
cbargren Apr 29, 2016
b936634
Add scripts to handle submodules
Apr 29, 2016
a4454cf
Bump npm to stop test failures
cbargren May 2, 2016
71bac25
Addressing PR comment
cbargren May 3, 2016
50bb365
Merge pull request #1017 from nodegit/libgit2-submodule
johnhaley81 May 3, 2016
83e55e2
Merge pull request #1016 from cbargren/babel
johnhaley81 May 3, 2016
7c21ef5
Make `Commit.create` async
May 3, 2016
a734b9f
Fix filemode changes test
May 3, 2016
42548ef
Merge pull request #1022 from nodegit/async-create-commit
johnhaley81 May 4, 2016
c18568b
Bump to version 0.13.0
May 4, 2016
aa672ee
Format `CHANGELOG.md` to be easier to link to
May 4, 2016
c168e86
Update `README.md` to new version
May 4, 2016
fc83393
Fix docs for generate code
May 5, 2016
dee87c2
Change title style of `CHANGELOG.md`
May 5, 2016
3eb906a
Add `Index#write` to the list of things made async in 0.13.0
May 5, 2016
21f65d2
Run async libgit2 calls on custom threadpool
srajko Apr 29, 2016
e80e6d4
add ability to discard lines
jdgarcia Apr 29, 2016
364d548
don't support discarding staged lines
jdgarcia May 5, 2016
da0e98d
add test for discard lines
jdgarcia May 5, 2016
5425d95
Fix typo in `CHANGELOG.md`
May 6, 2016
575ba05
nothing to see here
jdgarcia May 6, 2016
d8dcc0f
Fix submodules for the "no-prebuilt install from npm" case
May 9, 2016
6272470
Fix typo in comment
May 9, 2016
f98eb12
Merge pull request #1021 from jdgarcia/discard-lines
johnhaley81 May 9, 2016
1e43fbd
Merge pull request #1026 from nodegit/fix-submodules-npm-no-prebuilt
johnhaley81 May 9, 2016
7c2f7ef
Merge pull request #1019 from srajko/thread-safety-threadpool
johnhaley81 May 10, 2016
7ed0303
Memory management: plugged leak in fastWalk
May 11, 2016
c889fea
Merge pull request #1030 from smith-kyle/oid-leak
johnhaley81 May 11, 2016
de21154
Set oid.selfFreeing to true instead of "true"
May 12, 2016
7100d97
If trait is owned and is non-duplicable, don't mark as self freeing
May 17, 2016
a86dc6f
Merge pull request #1033 from smith-kyle/string-to-boolean
johnhaley81 May 26, 2016
092ab50
Merge pull request #1036 from smith-kyle/self-freeing-fix
johnhaley81 May 26, 2016
0ee35c4
Remove libgit2 vendor dependency
May 3, 2016
765406a
Bump to head commit in libgit2
May 3, 2016
0451538
Enable nanoseconds on linux and clean up gyp file
May 26, 2016
bdf9c68
Bump to 0.13.1
Jun 3, 2016
80e1a01
Replace then() with done(), so that error callback is not swalled by …
wasadigi Jun 8, 2016
322c54f
Merge pull request #1047 from wasadigi/master
johnhaley81 Jun 8, 2016
e0eb3f3
Fix install script error getting swallowed
Jun 8, 2016
6ea5d45
Merge pull request #1048 from nodegit/fix-install-script-error-swallo…
johnhaley81 Jun 8, 2016
150b7c1
Fix submodule check
Jun 8, 2016
0d7928e
Merge pull request #1050 from nodegit/fix-submodule-check
johnhaley81 Jun 8, 2016
c3a89ad
Bump to 0.13.2
Jun 9, 2016
03d3c33
Bring life cycle in line with npm standards
Jun 14, 2016
9543011
Handle legacy npm in lifecycle scripts
Jun 14, 2016
9d45b9a
changed references to entry.filename() to entry.name()
jorisroling Jun 21, 2016
90ac3a5
Merge pull request #1058 from jorisroling/master
johnhaley81 Jun 22, 2016
805edba
Fix build on windows
Jun 22, 2016
e7ff929
Fix build on linux
Jun 22, 2016
3a83ddf
Fix build on npm@2/node@4
Jun 23, 2016
0766ee6
Trim spawn stdout/stderr logs
Jun 23, 2016
39e5fa9
Fix linter
Jun 23, 2016
5119bb9
Fix `lifecycleScripts/postinstall` for electron/nwjs
Jun 23, 2016
5f0fe1c
Merge pull request #1055 from nodegit/lifecycle-fixes
johnhaley81 Jun 23, 2016
09008d7
Bump to version 0.14.0
Jun 23, 2016
e7bc03e
Merge pull request #1041 from nodegit/update-libgit2-head
johnhaley81 Jun 23, 2016
c64cbf9
Bump to version 0.15.0
Jun 23, 2016
957cf7c
Fix windows build
Jun 23, 2016
5d7517f
Update changelog to use better formatting.
Jun 23, 2016
a9d3fb0
Don't fail if postinstall doesn't work
Jun 24, 2016
15c68a9
Bump to 0.15.1
Jun 24, 2016
72ca544
Add notes for 0.14.1
Jun 24, 2016
84c4335
Increment version in package.json to 0.15.1
Jun 24, 2016
7cfcf99
Cap node 6 at 6.2 temporarily
maxkorp Jul 19, 2016
6951946
expose merge options in rebase optons
implausible Jul 19, 2016
e53e7f6
fix "is a directory" test to actually test that, retaining old test u…
novalis Jul 20, 2016
8e7d035
add isSubmodule() method
novalis Jul 20, 2016
78db796
Fix two typos in the documentation for Commit#parents:
novalis Jul 20, 2016
63f835e
fix Tree#entryByName function and add test
novalis Jul 20, 2016
542270c
expose diff flags option for repo methods
implausible Jul 20, 2016
c763079
expose rebase options for rebaseBranches
implausible Jul 20, 2016
cdc5767
Memory management: duplicate time
Jul 26, 2016
1bfe672
Merge pull request #1079 from novalis/dturner/tree-entry-by-name
tbranyen Jul 26, 2016
ce35433
Memory management: added test for duplicating time
Jul 26, 2016
6eb5e38
Merge pull request #1081 from novalis/dturner/commit-parent-docstring
maxkorp Aug 8, 2016
62120eb
Merge pull request #1080 from novalis/dturner/issubmodule
maxkorp Aug 8, 2016
3d66ab9
Merge pull request #1076 from nodegit/expose-merge-optons-in-rebase-o…
maxkorp Aug 10, 2016
86b2a56
Sort methods
maxkorp Jul 16, 2016
de14353
Stop re-exporting things from lib
maxkorp Jul 16, 2016
ba081a7
pull shallow clone off utils object
maxkorp Jul 16, 2016
cd5c051
Normalize fn names for overrides
maxkorp Jul 18, 2016
550616d
make aliases their own functions
maxkorp Aug 10, 2016
adf88fa
Merge pull request #1074 from nodegit/js-cleanup
maxkorp Aug 11, 2016
2c5d6d5
use get/setPrivate instead of get/setHiddenValue
maxkorp Aug 11, 2016
38bcb34
use nan-esque wrapper
maxkorp Aug 11, 2016
35cd564
Merge pull request #1106 from nodegit/v8-5.2-compat
maxkorp Aug 11, 2016
2441fee
Bump
maxkorp Aug 11, 2016
fa9817b
default byteorder to fix node 0.12
maxkorp Aug 12, 2016
2d1274d
remove fips and add no_windows_braindeath
maxkorp Aug 12, 2016
c45560f
add some missing libs to openssl
maxkorp Aug 12, 2016
07121fa
Merge pull request #1108 from nodegit/bump-openssl
implausible Aug 12, 2016
1e1a4d6
Merge pull request #1090 from smith-kyle/mem-safety-time
maxkorp Aug 12, 2016
7014104
Added instructions for CircleCI users
jamesbibby Aug 17, 2016
a7bde08
Merge pull request #1113 from jamesbibby/patch-1
tbranyen Aug 17, 2016
8f61bf5
move preinstall to install?
maxkorp Sep 14, 2016
6e57e40
Merge pull request #1126 from nodegit/fix-ci
maxkorp Sep 14, 2016
f0b22df
patch libssh2 to work with vs2015
maxkorp Sep 14, 2016
6822634
Fix windows builds where node exports openssl
maxkorp Sep 14, 2016
b451990
update versions of node for CI
maxkorp Sep 14, 2016
167b57a
Merge pull request #1107 from nodegit/node-6.3
maxkorp Sep 14, 2016
5aeae9f
Merge pull request #1125 from nodegit/patch-libssh2-vs2015
maxkorp Sep 14, 2016
fbd0a45
Bump to 1.7.0
maxkorp Jul 15, 2016
6f2fc3f
bump vendordep notice
maxkorp Jul 16, 2016
a9080f8
Patch libssh2 for msvs2015
maxkorp Aug 11, 2016
27fa563
patch libssh2 to use openssl on windows
maxkorp Sep 15, 2016
770dbd2
Merge pull request #1071 from nodegit/bump-libssh2-1.7
maxkorp Sep 15, 2016
14f4a7a
Don't run postbuild when we detect electron install
maxkorp Aug 15, 2016
cfe280c
fix linter and add nwjs equivalent
maxkorp Aug 18, 2016
14d8b3e
fix up electron and nw.js docs
maxkorp Aug 18, 2016
a6c9a51
Merge pull request #1114 from nodegit/electron-docs
maxkorp Sep 15, 2016
6da7d34
Merge pull request #1111 from nodegit/electron-no-postbuild
maxkorp Sep 15, 2016
fdcad7f
bump version
maxkorp Sep 15, 2016
f61f52e
Define GIT_SSH_MEMORY_CREDENTIALS for libgit2
daxelrod Oct 21, 2015
e2ccac1
bump version
maxkorp Sep 15, 2016
ef34d8a
Merge pull request #949 from alantrrs/fix-memory-creds
maxkorp Sep 19, 2016
2a2ef76
Add "Path" to variable names for clarity
kokarn Sep 23, 2016
3814092
Merge pull request #1135 from kokarn/master
johnhaley81 Sep 24, 2016
2c94641
Change readme link from gitter to slack
maxkorp Sep 26, 2016
8d69ff2
Ignore npm install failure only for 0.12
srajko Oct 5, 2016
9f2f1ba
Merge pull request #1144 from srajko/fix-travis-failure
johnhaley81 Oct 7, 2016
1318e7e
Fix application of /EHsc option
srajko Sep 24, 2016
e3d5899
Pull in identical settings to shared section
srajko Sep 24, 2016
55aacdb
Mark revwalk as selfFreeing
srajko Sep 23, 2016
80937a3
Mark tree entry as selfFreeing
srajko Sep 7, 2016
0a707b0
Add tree entry leak test
srajko Sep 23, 2016
c9a0daf
Add revwalk leak test
srajko Sep 23, 2016
9023308
Merge pull request #1137 from srajko/revwalk-leak-fix
johnhaley81 Oct 7, 2016
3b0afa4
Merge pull request #1138 from srajko/treeentry-leak-fix
johnhaley81 Oct 7, 2016
bd54fa8
Merge pull request #1143 from srajko/win-exception-handling
johnhaley81 Oct 7, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .astylerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--style=linux
--indent=spaces=2
--attach-namespaces
--attach-classes
--attach-inlines
--attach-extern-c
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 4
32 changes: 25 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
/build/*
!/build/codegen/

/doc/*
!/doc/Theme.css

/build/
/coverage/
/dist/
/include/
/lib/enums.js
/lib/nodegit.js
/node_modules/
/vendor/libgit2/
/src/
/test/coverage/
/test/home/
/test/repos/
/test/test/

/generate/output
/generate/**/*.json
!/generate/input/*.json

/generate/missing-tests.json
/binding.gyp


*.log
.DS_STORE
.idea

.vscode
jsconfig.json
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "vendor/libgit2"]
path = vendor/libgit2
url = git://github.com/libgit2/libgit2.git
[submodule "vendor/libgit2"]
url = https://github.com/nodegit/libgit2.git
31 changes: 31 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"boss": true,
"curly": true,
"eqnull": true,
"esnext": true,
"evil": true,
"futurehostile": true,
"globals": {
"after": true,
"afterEach": true,
"before": true,
"beforeEach": true,
"define": true,
"describe": true,
"global": true,
"it": true
},
"immed": false,
"maxlen": 80,
"node": true,
"predef": [
"Promise",
"Set"
],
"proto": true,
"quotmark": "double",
"trailing": true,
"undef": true,
"unused": "vars",
"validthis": true
}
33 changes: 27 additions & 6 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
docs/
example/
test/
util/
vendor/nodeunit
vendor/rimraf
/.travis/
/build/
/examples/
/generate/
/guides/
/lib/
/test/
/vendor/Release/

!/include
!/src

.astylerc
.editorconfig
.gitignore
.gitmodules
.jshintrc
.travis.yml
appveyor.yml

!binding.gyp

*.filters
*.log
*.md
*.sln
*.vcxproj
142 changes: 133 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,138 @@
language: node_js
node_js:
- 0.8
- "0.10"
- 0.11
git:
depth: 1
branches:
only:
- master
- /^v\d+\.\d+\.\d+$/

compiler: clang

os:
- linux
- osx

sudo: false

env:
matrix:
- export NODE_VERSION="0.12" TARGET_ARCH="x64"
- export NODE_VERSION="4.5" TARGET_ARCH="x64"
- export NODE_VERSION="5.12" TARGET_ARCH="x64"
- export NODE_VERSION="6.5" TARGET_ARCH="x64"

matrix:
fast_finish: true
allow_failures:
- node_js: 0.11
include:
- os: linux
env: export NODE_VERSION="0.12" TARGET_ARCH="ia32"
sudo: required
- os: linux
env: export NODE_VERSION="4.5" TARGET_ARCH="ia32"
sudo: required
- os: linux
env: export NODE_VERSION="5.12" TARGET_ARCH="ia32"
sudo: required
- os: linux
env: export NODE_VERSION="6.5" TARGET_ARCH="ia32"
sudo: required

git:
depth: 1

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential
- libssl-dev
- gcc-4.9-multilib
- g++-4.9-multilib
- lcov

before_install:
- export CC=clang
- export CXX=clang++
- export npm_config_clang=1

- if [ $TARGET_ARCH == "ia32" ]; then
sudo ln -s /usr/include/asm-generic /usr/include/asm;
fi

- if [ $TRAVIS_OS_NAME != "linux" ]; then
git clone https://github.com/creationix/nvm.git ./.nvm;
source ./.nvm/nvm.sh;
fi

- nvm install $NODE_VERSION

- if [ -z "$TRAVIS_TAG" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ]; then
export GYP_DEFINES="coverage=1 use_obsolete_asm=true";
export JOBS=4;
export CC=/usr/bin/gcc-4.9;
export CXX=/usr/bin/g++-4.9;
export npm_config_clang=0;
wget http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz;
tar xvfz lcov-1.10.tar.gz;
else
export GYP_DEFINES="use_obsolete_asm=true";
export JOBS=4;
fi

# node 0.12 is sometimes failing
# with a "Callback called more than once" error
# Despite that error, it seems like modules do get installed correctly,
# and the rest of the build proceeds as normal.
# So we ignore that error, just for node 0.12
# If npm install ever fails in a more significant way,
# the rest of the build should hopefully fail anyway.
install:
- if [[ $NODE_VERSION == "0.12" ]]; then
npm install || true;
else
npm install;
fi

# This is a random private key used purely for testing.
before_script:
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- echo -e "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkTcgXnHuqR0gbwegnr9Zxz4hTkjjV/SpgJNPJz7mo/HKNbx0rqjj1P0yGR053R9GSFFim2ut4NK9DPPUkQdyucw+DoLkYRHJmlJ4BNa9NTCD0sl+eSXO2969kZojCYSOgbmkCJx8mdgTwhzdgE/jhBrsY0hPE6pRTlU+H68/zeNdJUAIJf0LLXOm3hpTKLA19VICltl/j9VvBJpgRHdBylXEy 1FC6 L8HokYpjkQQk1ZXj3m7Nlo8yDdg4VcljOJWC+Xh8kxRMfK5x/VRVsYKCQXN5QlzKeqf7USRDUS/7mFoPUBW+d4kwKtGxRsWuIL2yeqzifZUTOgsh9+ZWAWxWffQZ your_email@example.com" > ~/.ssh/id_rsa.pub
- echo -e "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA5E3IF5x7qkdIG8HoJ6/Wcc+IU5I41f0qYCTTyc+5qPxyjW8d\nK6o49T9MhkdOd0fRkhRYptrreDSvQzz1JEHcrnMPg6C5GERyZpSeATWvTUwg9LJf\nnklztvevZGaIwmEjoG5pAicfJnYE8Ic3YBP44Qa7GNITxOqUU5VPh+vP83jXSVAC\nCX9Cy1zpt4aUyiwNfVSApbZf4/VbwSaYER3QcpVxMi/B6JGKY5EEJNWV495uzZaP\nMg3YOFXJYziVgvl4fJMUTHyucf1UVbGCgkFzeUJcynqn+1EkQ1Ev+5haD1AVvneJ\nMCrRsUbFriC9snqs4n2VEzoLIffmVgFsVn30GQIDAQABAoIBAQDPQm2sQbti0mN8\nD4Uawl8D40v30n8WhUa7EbPTOmlqKAQ2sfDhex9KRbTLEmEBmImA/Eee8o9iCTIy\n8Fv8Fm6pUHt9G6Pti/XvemwW3Q3QNpSUkHqN0FDkgecQVqVBEb6uHo3mDm4RFINX\neOmkp30BjIK9/blEw1D0sFALLOEUPaDdPMwiXtFgqfrFSgpDET3TvQIwZ2LxxTm0\ncNmP3sCSlZHJNkZI4hBEWaaXR+V5/+C1qblDCo5blAWTcX3UzqrwUUJgFi6VnBuh\n7S9Q6+CEIU+4JRyWQNmY8YgZFaAp6IOr/kyfPxTP1+UEVVgcLn3WDYwfG9og0tmz\nfzlruAgBAoGBAPfz73Pey86tNZEanhJhbX8gVjzy2hvyhT0paHg0q/H6c1VWOtUH\nOwZ3Ns2xAZqJhlDqCHnQYSCZDly042U/theP4N8zo1APb4Yg4qdmXF9QE1+2M03r\nkS6138gU/CSCLf8pCYa6pA/GmsaXxloeJGLvT4fzOZRsVav80/92XHRhAoGBAOu2\nmKh4Gr1EjgN9QNbk9cQTSFDtlBEqO/0pTepvL73UvNp/BAn4iYZFU4WnklFVBSWc\nL84Sc732xU12TAbTTUsa6E7W29pS8u7zVTxlIdQIIU5pzDyU1pNNk2kpxzte5p3Y\nPDtniPFsoYLWoH0LpsKL93t2pLAj+IOkE6f3XBq5AoGAIKaYo5N1FxQr952frx/x\nQUpK0N/R5Ng8v18SiLG26rhmM5iVSrQXC7TrHI7wfR8a9tC6qP/NqnM9NuwC/bQ0\nEEo7/GhaWxKNRwZRkmWiSFLNGk9t1hbtGU+N1lUdFtmloPIQdRNiw0kN3JTj474Q\nYI7O1EItFORnK6yxZfR6HEECgYEA1CT7MGUoa8APsMRCXyaiq15Pb8bjxK8mXquW\nHLEFXuzhLCW1FORDoj0y9s/iuKC0iS0ROX8R/J7k5NrbgikbH8WP36UxKkYNr1IC\nHOFImPTYRSKjVsL+fIUNb1DSp3S6SsYbL7v3XJJQqtlQiDq8U8x1aQFXJ9C4EoLR\nzhKrKsECgYBtU/TSF/TATZY5XtrN9O+HX1Fbz70Ci8XgvioheVI2fezOcXPRzDcC\nOYPaCMNKA5E8gHdg4s0TN7uDvKTJ+KhSg2V7gZ39A28dHrJaRX7Nz4k6t2uEBjX9\na1JidpAIbJ+3w7+hj6L299tVZvS+Y/6Dz/uuEQGXfJg/l/5CCvQPsA==\n-----END RSA PRIVATE KEY-----" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa*
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
- git config --global user.name "John Doe"
- git config --global user.email johndoe@example.com

script:
- if [ $TARGET_ARCH == "x64" ]; then
if [ -z "$TRAVIS_TAG" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "0.12" ]; then
npm test && npm run cov && npm run coveralls;
else
npm test;
fi
else
echo "Not running tests because the binary is not built for 64-bit systems";
fi

after_success:
- if [ -n "$TRAVIS_TAG" ]; then
npm install -g node-pre-gyp;
npm install -g aws-sdk;
node lifecycleScripts/clean;
node-pre-gyp package --target_arch=$TARGET_ARCH;
node-pre-gyp publish --target_arch=$TARGET_ARCH;
fi

- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_PULL_REQUEST == "false" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4.1" ] && [ $TARGET_ARCH == "x64" ]; then
.travis/deploy-docs.sh;
fi

notifications:
slack:
secure: KglNSqZiid9YudCwkPFDh+sZfW5BwFlM70y67E4peHwwlbbV1sSBPHcs74ZHP/lqgEZ4hMv4N2NI58oYFD5/1a+tKIQP1TkdIMuq4j2LXheuirA2HDcydOVrsC8kRx5XFGKdVRg/uyX2dlRHcOWFhxrS6yc6IxtxYWlRTD2SmEc=

webhooks:
urls:
- https://webhooks.gitter.im/e/cbafdb27ad32ba746a73
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
34 changes: 34 additions & 0 deletions .travis/deploy-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash


# delete "nodegit.github.com" folder if it exists
rm -rf "nodegit.github.com" || exit 0;

# clone "nodegit.github.com" repository
git clone "https://github.com/nodegit/nodegit.github.com.git"

# change into "nodegit.github.com" folder
cd "nodegit.github.com"

# install node dependencies
npm install

# link "nodegit" folder
ln -s ../.. generate/nodegit

# generate new docs
node generate

# configure git user information
git config user.name "Travis CI"
git config user.email "noreply@travis-ci.org"

# commit changes
git add .
git commit -m "Deploy to GitHub Pages

see https://github.com/nodegit/nodegit.github.com/commit/${TRAVIS_COMMIT}"
git tag "${TRAVIS_COMMIT}"

# push to the "nodegit.github.com" repository
git push --quiet "https://${GH_TOKEN}@github.com/nodegit/nodegit.github.com.git" master "${TRAVIS_COMMIT}" > /dev/null 2>&1
Loading
0