Commit graph

14 commits

Author SHA1 Message Date
Luke Hoban
e27549e5c2 Add nightly build target
Adds a nightly build target that runs the long running provider
and examples tests.  Enables travis to run this on cron jobs,
which we will configure to trigger nightly.
2017-06-16 09:53:07 -07:00
joeduffy
cfaa7c9310 Eliminate use of nonstandard tools
This change eliminates the use of nonstandard tools in our build:

* `go test` automatically uses `GOMAXPROCS` for its parallelism
  setting.  In modern Go, this is now set to the number of processors.
  So, there is no need to set it explicitly using `nproc`.

* We can avoid `realpath` in the `lumijs` executable by making it
  a Node.js file and using a relative require import of main.

* We can avoid `realpath` in our Makefiles by just using `pwd`.
2017-06-03 11:08:09 -07:00
joeduffy
39db4dca63 Also build the Lumi stdlib during make all 2017-06-02 15:26:39 -07:00
Joe Duffy
8bbe89bd75 Makeify more; add a "full build" target (#193)
* Makeify more; add a "full build" target

This change uses make for more of our tree.  Namely, the AWS provider
and LumiJS compilers each now use make to build and/or install them.
Not only does this bring about some consistency to how we build and
test things, but also made it easy to add a full build target:

    $ make all

This target will build, test, and install the core Go tools, the LumiJS
compiler, and the AWS provider, in that order.

Each can be made in isolation, however, which ensures that the inner
loop for those is fast and so that, when it comes to finishing
pulumi/lumi#147, we can easily split them out and make from the top.
2017-06-02 14:26:34 -07:00
joeduffy
769b0a4af0 Only run quick tests for make; add a make full target
The AWS tests take a while to run and it's easy to forget.  Further,
they are going to start taking quite a bit longer very soon.

So, this change introduces a `make full` target, which is what our
CI tests run.  But the ordinary `make` skips the long tests for faster
inner loop verification.  Over time, I'm sure we'll get far more
sophisticated with the split between inner vs. outer loop testing,
especially for performance, stress, and so on.
2017-06-02 10:30:57 -07:00
joeduffy
28c9c80b74 Enable Slack notifications for Travis CI 2017-05-25 07:36:17 -07:00
joeduffy
9aa1d8147b Remove master from the list of valid Go versions 2017-05-24 12:50:28 -07:00
joeduffy
a1cf0c2a6c Update to Go 1.8.2 2017-05-24 12:50:28 -07:00
joeduffy
d92ccc9cb5 Add -v flag to godep restore
This change adds the -v flag so that verbose output is emitted in the
CI/CD logs.  Since restore can take a little while, this at least lets
you monitor what it's doing and how long what it's doing is taking...
2017-05-24 12:50:28 -07:00
joeduffy
efdfa42527 Manually install Godep in pre-install 2017-05-24 12:50:28 -07:00
joeduffy
c18ae86cc8 Manually godep restore during install 2017-05-24 12:50:28 -07:00
joeduffy
88ea603551 Switch from Glide to Godep for dependency management
There isn't a pre-canned Glide distribution for amd64 linux, and the
integration with Glide and Travis isn't nearly as swanky as with Godep
(which essentially works out of the box).  Furthermore, Godep has caught
up with Go's vendoring changes since last time I looked, which was the
primary reason I ended up going with Glide in the first place.
2017-05-24 12:50:28 -07:00
joeduffy
9ed22eba6f Prep the $GOPATH/bin directory
The Glide installation script requires that the $GOPATH/bin directory
already exists, but because it is pre-install, it doesn't.  Make it so.
2017-05-24 12:50:28 -07:00
joeduffy
f93f8f0510 Add a basic Travis CI/CD file
This is the beginning of pulumi/lumi#162.
2017-05-24 12:50:28 -07:00