Skip to content

Commit 56d1698

Browse files
authored
Merge pull request #1 from windmilleng/nicks/circleci
circleci: add integration tests
2 parents 64e7adc + c9b4b85 commit 56d1698

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2.1
2+
jobs:
3+
build:
4+
docker:
5+
- image: tiltdev/circleci-tilt:v0.13.0
6+
7+
steps:
8+
- setup_remote_docker
9+
- checkout
10+
- run: apt install -y golang git
11+
- run: with-kind-cluster.sh test/test.sh

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# tilt-example-nodejs
22

3+
[![Build Status](https://circleci.com/gh/windmilleng/tilt-example-nodejs/tree/master.svg?style=shield)](https://circleci.com/gh/windmilleng/tilt-example-nodejs)
4+
35
An example project that demonstrates how to use Tilt to develop on a NodeJS app (using Express for serving and Mustache for templating).
46

57
## Fastest Deployment

test/test.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
# cd to the root of the repo.
6+
cd $(dirname $(dirname $0))
7+
8+
echo "Testing 0-base"
9+
tilt ci --file 0-base/Tiltfile
10+
tilt down --file 0-base/Tiltfile
11+
12+
echo "Testing 1-measured"
13+
tilt ci --file 1-measured/Tiltfile
14+
tilt down --file 1-measured/Tiltfile
15+
16+
echo "Testing 2-optimized"
17+
tilt ci --file 2-optimized-dockerfile/Tiltfile
18+
tilt down --file 2-optimized-dockerfile/Tiltfile
19+
20+
echo "Testing 3-recommended"
21+
tilt ci --file 3-recommended/Tiltfile
22+
tilt down --file 3-recommended/Tiltfile

0 commit comments

Comments
 (0)