- Install Node.js and Yarn.
- Note the step to put this line in your shell profile
export PATH="$PATH:$(yarn global bin)"
.
- Note the step to put this line in your shell profile
- Clone this repo.
- If you previously cloned this repo when it was under Henry's account, run
git remote set-url origin git@github.com:tommyang/FourSquared.git
if you use SSH orgit remote set-url origin https://github.com/tommyang/FourSquared.git
if you use HTTPS.
- If you previously cloned this repo when it was under Henry's account, run
- Install local dependencies
$ yarn
. - Install these if you want to run end-to-end tests locally:
$ yarn global add gulp-cli phantomjs
.- Install Selenium Standalone Server.
- Write tests in
/test
, preferrably with the following naming conventions:test-xxx.js
for unit tests. Seetest-foo.js
for an example.e2e-xxx.js
for end-to-end tests. Seee2e-password.js
for an example.
- Write code. See
foo.js
for an example. - To start the server locally, run
$ yarn start
and got tohttp://localhost:3000
. - To run the tests:
- To run unit tests only, run
$ yarn unit
. - To run end-to-end tests only, make sure the server is not running, start Selenium Standalone Server, and then run
$ yarn e2e
. - To run all tests, make sure the server is not running, start Selenium Standalone Server, and then run
$ yarn test
.
- To run unit tests only, run
- Commit and push. Travis CI will run the tests using Mocha. Test coverage information is tracked by Code Climate. If tests return successfully, Travis will deploy this version to Heroku automatically.
- If you are pushing commits with just "cosmetic changes" (such as updating this README file), include
[ci skip]
in the commit message to skip Travis CI.
- If you are pushing commits with just "cosmetic changes" (such as updating this README file), include
- Check
#commits
Slack channel for Travis CI status report.
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
tommyang/FourSquared
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published