Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .travis.yml #1

Open
wants to merge 48 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1684bca
Add .travis.yml
sultaness Jun 28, 2019
66cc400
Update .travis.yml
sultaness Jun 29, 2019
6245335
Build in Windows 10
sultaness Jul 3, 2019
33fd8d5
Update .travis.yml configuration for Windows and Linux
sultaness Jul 3, 2019
19e8ac6
Update .travis.yml configuration for Windows
sultaness Jul 3, 2019
5549c2a
Add push notifications to slack
sultaness Jul 3, 2019
bdf936a
Change before_install: to powershell: in .travis.yml
sultaness Jul 3, 2019
57f8298
Update .travis.yml contents
sultaness Jul 3, 2019
8a36656
Lint .travis.yml
sultaness Jul 3, 2019
f498c5d
Lint .travis.yml - remove | from if stmt
sultaness Jul 3, 2019
de335a8
debug
sultaness Jul 3, 2019
923843c
Update path in binding.gyp
sultaness Jul 3, 2019
3e52fb3
Update package.json - scripts - test
sultaness Jul 3, 2019
8110736
Add before_install to .travis.yml
sultaness Jul 3, 2019
05bad65
Change before_install instance
sultaness Jul 4, 2019
aa47d4c
Update before_install instance with powershell command
sultaness Jul 4, 2019
9b2c59d
Update before_install instance with powershell commands
sultaness Jul 4, 2019
1361b35
Update before_install instance with powershell commands
sultaness Jul 4, 2019
ed01c4b
Force Install_Package openSSL
sultaness Jul 4, 2019
8156adc
Run script in powershell
sultaness Jul 4, 2019
f606259
Run script in powershell
sultaness Jul 4, 2019
e6b0c80
Run travis in debug mode
sultaness Jul 4, 2019
980aac7
Add bash to script in .travis.yml
sultaness Jul 4, 2019
4df80db
Remove bash from script in .travis.yml
sultaness Jul 4, 2019
775ea07
Remove bash from script in .travis.yml
sultaness Jul 4, 2019
bd21933
Remove bash from script in .travis.yml
sultaness Jul 4, 2019
25d7498
Remove npm run test for Windows under script in .travis.yml
sultaness Jul 4, 2019
9a4b703
Edit script in .travis.yml
sultaness Jul 4, 2019
4f2a776
Change path under script in .travis.yml
sultaness Jul 4, 2019
a545583
Change script in .travis.yml
sultaness Jul 4, 2019
7180bad
Run travis in debug mode
sultaness Jul 4, 2019
7184259
Update script in .travis.yml
sultaness Jul 4, 2019
2c60b5d
Change script in .travis.yml
sultaness Jul 4, 2019
2f139fe
Debug script in .travis.yml
sultaness Jul 4, 2019
dad3b42
Fix script in .travis.yml
sultaness Jul 4, 2019
76026ed
Add trusted execution script in .travis.yml
sultaness Jul 4, 2019
d111b71
Add full path in .travis.yml
sultaness Jul 4, 2019
8b6e7e8
Add yarn in .travis.yml
sultaness Jul 4, 2019
dea6716
use generic
sultaness Jul 4, 2019
b9d513f
use c
sultaness Jul 4, 2019
e7728af
install npm
sultaness Jul 4, 2019
2953883
install npm
sultaness Jul 4, 2019
01c301d
debug npm
sultaness Jul 4, 2019
d0d7710
debug npm
sultaness Jul 4, 2019
71007a2
debug npm
sultaness Jul 4, 2019
e5684d5
debug npm path
sultaness Jul 4, 2019
fb62e1b
debug npm path
sultaness Jul 4, 2019
fe77593
debug npm path
sultaness Jul 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
node_modules/
npm-debug.log
nuget/
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: c

os:
- windows

before_install:
- powershell -c "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine"
- powershell -c "Import-Module PackageManagement; Install-PackageProvider Nuget"
- powershell -c "Import-Module PackageManagement; Register-PackageSource -Name NuGetOrg -Location https://www.nuget.org/api/v2 -ProviderName NuGet"
- powershell -c "Import-Module PackageManagement; Install-Package -Source NuGetOrg -Name NuGet.CommandLine -Force -ExcludeVersion -Destination C:/tools"
- powershell -c "Install-Package openssl-vc141-static-x86_64 -RequiredVersion 1.0.2 -Force -Destination nuget"
- choco install -y nodejs
- powershell -c 'refreshenv'
- echo $PATH
- export PATH=$PATH:"/c/Program Files/nodejs":"/c/Program Files/nodejs/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin"
- echo $PATH

install:
- npm install -d

script:
- npm run test

after_success:
- bash <(curl -s https://codecov.io/bash)

notifications:
- slack: merkleblock:ZRA3bl4HQkXwpcZeeRam5RO1
6 changes: 3 additions & 3 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@
["OS=='win'", {
"conditions": [
["target_arch=='ia32'", {
"openssl_root%": "C:/OpenSSL-Win32"
"openssl_root%": "<(module_root_dir)/Work/bcrypto/nuget/openssl-vc141-static-x86_64.1.0.2/build/native/lib/Win32"
}, {
"openssl_root%": "C:/OpenSSL-Win64"
"openssl_root%": "<(module_root_dir)/nuget/openssl-vc141-static-x86_64.1.0.2/build/native/lib/x64"
}]
]
}],
Expand Down Expand Up @@ -170,7 +170,7 @@
}],
["OS=='win'", {
"libraries": [
"-l<(openssl_root)/lib/libeay32.lib"
"-l<(openssl_root)/static/Release/libeay32.lib"
],
"include_dirs": [
"<(openssl_root)/include"
Expand Down
Binary file added openssl-vc141-static-x86_64.1.0.2.nupkg
Binary file not shown.
34 changes: 34 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"install": "node-gyp rebuild || echo 'Build failed.'",
"lint": "eslint bench/ lib/ test/ || exit 0",
"lint-ci": "eslint bench/ lib/ test/",
"test": "bmocha -S --file ./scripts/post.js 'test/*-test.js'",
"test": "bmocha -S --file ./scripts/post.js test/*-test.js",
"test-native": "bmocha -B native -S --file ./scripts/post.js 'test/*-test.js'",
"test-node": "bmocha -B node -S 'test/*-test.js'",
"test-js": "bmocha -B js -S 'test/*-test.js'",
Expand Down
28 changes: 28 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


bmocha@^2.1.0:
version "2.1.2"
resolved "https://registry.yarnpkg.com/bmocha/-/bmocha-2.1.2.tgz#d7ad6a51de06d30ec1c2ec3b5d6963ed26735b66"
integrity sha512-EvcGGQCbRnF3/Uq+gNIrWdNY65eDok17i7AKEY/xTLGFk812GdqEQ/FW8X1X1lyH5IlLshjubDjyC4HRWeCt7g==

bsert@~0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/bsert/-/bsert-0.0.10.tgz#231ac82873a1418c6ade301ab5cd9ae385895597"
integrity sha512-NHNwlac+WPy4t2LoNh8pXk8uaIGH3NSaIUbTTRXGpE2WEbq0te/tDykYHkFK57YKLPjv/aGHmbqvnGeVWDz57Q==

bufio@~1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/bufio/-/bufio-1.0.6.tgz#e0eb6d70b2efcc997b6f8872173540967f90fa4d"
integrity sha512-mjYZFRHmI9bk3Oeexu0rWjHFY+w6hGLabdmwSFzq+EFr4MHHsNOYduDVdYl71NG5pTPL7GGzUCMk9cYuV34/Qw==

loady@~0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/loady/-/loady-0.0.1.tgz#24a99c14cfed9cd0bffed365b1836035303f7e5d"
integrity sha512-PW5Z13Jd0v6ZcA1P6ZVUc3EV8BJwQuAiwUvvT6VQGHoaZ1d/tu7r1QZctuKfQqwy9SFBWeAGfcIdLxhp7ZW3Rw==

nan@^2.13.2:
version "2.14.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c"
integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==