Add syntax highlighting to README.md

This commit is contained in:
Igor Vuk 2014-09-24 18:28:35 +02:00
parent 0b7e0cf8b5
commit f8145769a9
1 changed files with 23 additions and 14 deletions

View File

@ -58,33 +58,40 @@ Next, install the following software packages, which are needed for some depende
Then, install [Gox](https://github.com/mitchellh/gox), which is used
as a compilation tool on top of Go:
```sh
$ go get -u github.com/mitchellh/gox
```
Next, clone this repository into `$GOPATH/src/github.com/hashicorp/terraform`.
Install the necessary dependencies by running `make updatedeps` and then just
type `make`. This will compile some more dependencies and then run the tests. If
this exits with exit status 0, then everything is working!
```sh
$ make updatedeps
...
$ make
...
```
To compile a development version of Terraform and the built-in plugins,
run `make dev`. This will put Terraform binaries in the `bin` folder:
```sh
$ make dev
...
$ bin/terraform
...
```
If you're developing a specific package, you can run tests for just that
package by specifying the `TEST` variable. For example below, only
`terraform` package tests will be run.
```sh
$ make test TEST=./terraform
...
```
### Acceptance Tests
@ -107,8 +114,10 @@ account for whatever provider you're testing.
To run the acceptance tests, invoke `make testacc`:
```sh
$ make testacc TEST=./builtin/providers/aws TESTARGS='-run=VPC'
...
```
The `TEST` variable is required, and you should specify the folder where
the provider is. The `TESTARGS` variable is recommended to filter down