Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
5b4b9d6a
Commit
5b4b9d6a
authored
8 years ago
by
Gunnar Schaefer
Browse files
Options
Downloads
Patches
Plain Diff
Lock node_modules into SCITRAN_RUNTIME_PATH
parent
d4931990
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bin/install-dev-osx.sh
+0
-14
0 additions, 14 deletions
bin/install-dev-osx.sh
requirements.txt
+1
-1
1 addition, 1 deletion
requirements.txt
test/bin/run-integration-tests.sh
+3
-2
3 additions, 2 deletions
test/bin/run-integration-tests.sh
test/bin/run-tests-osx.sh
+13
-3
13 additions, 3 deletions
test/bin/run-tests-osx.sh
with
17 additions
and
20 deletions
bin/install-dev-osx.sh
+
0
−
14
View file @
5b4b9d6a
...
...
@@ -74,17 +74,3 @@ else
MONGODB_VERSION
=
$(
$SCITRAN_RUNTIME_PATH
/bin/mongod
--version
|
grep
"db version"
|
cut
-d
"v"
-f
3
)
echo
"MongoDB version
$MONGODB_VERSION
installed"
fi
# Install Node.js
if
[
!
-f
"
$SCITRAN_RUNTIME_PATH
/bin/node"
]
;
then
echo
"Installing Node.js"
NODE_URL
=
"https://nodejs.org/dist/v6.4.0/node-v6.4.0-darwin-x64.tar.gz"
curl
$NODE_URL
|
tar
xz
-C
$VIRTUAL_ENV
--strip-components
1
fi
# Install testing dependencies
echo
"Installing testing dependencies"
pip
install
--no-cache-dir
-r
"test/integration_tests/requirements-integration-test.txt"
npm
install test
/integration_tests
This diff is collapsed.
Click to expand it.
requirements.txt
+
1
−
1
View file @
5b4b9d6a
...
...
@@ -12,4 +12,4 @@ strict-rfc3339==0.7
uwsgi
==2.0.13.1
webapp2
==2.5.2
WebOb
==1.5.1
git+https://github.com/flywheel-io/gears.git@65aae6ae6f8634bf45d744332641b3838fc06668
git+https://github.com/flywheel-io/gears.git@65aae6ae6f8634bf45d744332641b3838fc06668
#egg=gears
This diff is collapsed.
Click to expand it.
test/bin/run-integration-tests.sh
+
3
−
2
View file @
5b4b9d6a
...
...
@@ -59,13 +59,14 @@ set +u
# If no VIRTUAL_ENV, make sure /usr/local/bin is in the path
if
[
-z
"
$VIRTUAL_ENV
"
]
;
then
PATH
=
"/usr/local/bin:
$PATH
"
npm
install test
/integration_tests
else
npm
install
--global
test
/integration_tests
fi
set
-u
PATH
=
"
$(
npm bin
)
:
$PATH
"
npm
install test
/integration_tests
# Allow us to require modules from package.json,
# since abao_test_hooks.js is not being called from the package directory
integration_test_node_modules
=
"
$(
pwd
)
/node_modules/scitran-core-integration-tests/node_modules"
...
...
This diff is collapsed.
Click to expand it.
test/bin/run-tests-osx.sh
+
13
−
3
View file @
5b4b9d6a
#!/usr/bin/env bash
set
-e
unset
CDPATH
...
...
@@ -24,13 +25,22 @@ clean_up () {
coverage report
-m
coverage html
}
trap
clean_up EXIT
./bin/install-dev-osx.sh
# Note this will fail with "unbound variable" errors if "set -u" is enabled
.
"
$SCITRAN_RUNTIME_PATH
/bin/activate"
source
$SCITRAN_RUNTIME_PATH
/bin/activate
# will fail with `set -u`
# Install Node.js
if
[
!
-f
"
$SCITRAN_RUNTIME_PATH
/bin/node"
]
;
then
echo
"Installing Node.js"
NODE_URL
=
"https://nodejs.org/dist/v6.10.2/node-v6.10.2-darwin-x64.tar.gz"
curl
$NODE_URL
|
tar
xz
-C
$VIRTUAL_ENV
--strip-components
1
fi
# Install testing dependencies
echo
"Installing testing dependencies"
pip
install
--no-cache-dir
-r
"test/integration_tests/requirements-integration-test.txt"
./test/bin/lint.sh api
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment