mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Merge pull request #1895 from github/bootstrap-script
Add script/bootstrap
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -5,3 +5,4 @@ lib/linguist/samples.json | |||||||
| /grammars | /grammars | ||||||
| /node_modules | /node_modules | ||||||
| test/fixtures/ace_modes.json | test/fixtures/ace_modes.json | ||||||
|  | /vendor/gems/ | ||||||
|   | |||||||
| @@ -141,7 +141,7 @@ But for development you are going to want to checkout out the source. To get it, | |||||||
|  |  | ||||||
|     git clone https://github.com/github/linguist.git |     git clone https://github.com/github/linguist.git | ||||||
|     cd linguist/ |     cd linguist/ | ||||||
|     bundle install |     script/bootstrap | ||||||
|  |  | ||||||
| To run the tests: | To run the tests: | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								script/bootstrap
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								script/bootstrap
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,8 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | set -e | ||||||
|  |  | ||||||
|  | cd "$(dirname "$0")/.." | ||||||
|  |  | ||||||
|  | bundle check --path vendor/gems > /dev/null 2>&1 || \ | ||||||
|  |     bundle install --local --path vendor/gems | ||||||
| @@ -1,4 +1,7 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
|  | set -e | ||||||
|  |  | ||||||
| if [ -d /usr/share/rbenv/shims ]; then | if [ -d /usr/share/rbenv/shims ]; then | ||||||
|   export PATH=/usr/share/rbenv/shims:$PATH |   export PATH=/usr/share/rbenv/shims:$PATH | ||||||
|   export RBENV_VERSION=2.1.2-github |   export RBENV_VERSION=2.1.2-github | ||||||
| @@ -11,11 +14,9 @@ ruby -v | |||||||
| bundle -v | bundle -v | ||||||
| set +x | set +x | ||||||
|  |  | ||||||
| mkdir -p ./vendor/gems |  | ||||||
|  |  | ||||||
| # Clean out any unversioned files | # Clean out any unversioned files | ||||||
| git clean -fd | git clean -fd | ||||||
|  |  | ||||||
| bundle install --local --path ./vendor/gems | script/bootstrap | ||||||
| bundle exec rake samples | bundle exec rake samples | ||||||
| bundle exec rake | bundle exec rake | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user