Skip to content

Commit 68dbfff

Browse files
committed
Run simple example in integration test
1 parent 7478258 commit 68dbfff

File tree

3 files changed

+76
-3
lines changed

3 files changed

+76
-3
lines changed

.travis.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,35 @@ language: generic
33
services:
44
- docker
55

6+
cache:
7+
directories:
8+
- $HOME/.stack
9+
- $TRAVIS_BUILD_DIR/examples/.stack-work
10+
611
jobs:
712
include:
813
- stage: Integration Tests
9-
before_script:
14+
install:
15+
# Download and install stack
16+
- travis_retry curl -sSL https://get.haskellstack.org/ | sh
17+
1018
# Download and install kubectl
1119
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
1220

1321
# Download and install kind
1422
- curl -LO https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64 && chmod +x kind-linux-amd64 && sudo mv kind-linux-amd64 /usr/local/bin/kind
15-
23+
before_script:
1624
# Create a new Kubernetes cluster using KinD
1725
- kind create cluster
1826

1927
# Set KUBECONFIG environment variable
2028
- export KUBECONFIG="$(kind get kubeconfig-path)"
21-
script: kubectl get pods -A
29+
script:
30+
# Verify if kubernetes installation is alright
31+
- kubectl get pods -A
32+
33+
# Run simple test
34+
- |
35+
cd examples
36+
stack build --no-terminal
37+
stack exec simple

examples/stack.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ extra-deps:
99
- katip-0.8.0.0
1010
- oidc-client-0.4.0.0
1111
- string-random-0.1.2.0
12+
- git: https://github.com/akshaymankar/foundation.git
13+
commit: 31d978d94d1493a53565e1050450c434e8808bd6
14+
subdirs:
15+
- foundation
16+
- basement
17+
- git: https://github.com/akshaymankar/hs-certificate.git
18+
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
19+
subdirs:
20+
- x509-validation

examples/stack.yaml.lock

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,54 @@ packages:
3939
sha256: 21c7e61fceea98d14b453fc74c947b715ce33fe4c665c65b1f28c6f417d4ab7e
4040
original:
4141
hackage: string-random-0.1.2.0
42+
- completed:
43+
subdir: foundation
44+
cabal-file:
45+
size: 11653
46+
sha256: 7d6b57d3b293a46680a6c044ded62655e7b7477d1082f710162b018333ae35f5
47+
name: foundation
48+
version: 0.0.24
49+
git: https://github.com/akshaymankar/foundation.git
50+
pantry-tree:
51+
size: 11225
52+
sha256: 7bafcf8799e366958a20533daa5a574d5d7babb798bc26be4ef7ed48d7c580d2
53+
commit: 31d978d94d1493a53565e1050450c434e8808bd6
54+
original:
55+
subdir: foundation
56+
git: https://github.com/akshaymankar/foundation.git
57+
commit: 31d978d94d1493a53565e1050450c434e8808bd6
58+
- completed:
59+
subdir: basement
60+
cabal-file:
61+
size: 5487
62+
sha256: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
63+
name: basement
64+
version: 0.0.11
65+
git: https://github.com/akshaymankar/foundation.git
66+
pantry-tree:
67+
size: 5859
68+
sha256: 19396c8068f1f94a17dec91a9f39cd3028a5e752837435e769ec783400711a3e
69+
commit: 31d978d94d1493a53565e1050450c434e8808bd6
70+
original:
71+
subdir: basement
72+
git: https://github.com/akshaymankar/foundation.git
73+
commit: 31d978d94d1493a53565e1050450c434e8808bd6
74+
- completed:
75+
subdir: x509-validation
76+
cabal-file:
77+
size: 2211
78+
sha256: 4c9d897070bf5d36e437b3b9a04c28ebb6fce90138da7b5e8fa5c100192ef7b2
79+
name: x509-validation
80+
version: 1.6.11
81+
git: https://github.com/akshaymankar/hs-certificate.git
82+
pantry-tree:
83+
size: 631
84+
sha256: b85641fe35b21d23b93c3b0e158ebdc77ee2877568003854d3031387f676daf7
85+
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
86+
original:
87+
subdir: x509-validation
88+
git: https://github.com/akshaymankar/hs-certificate.git
89+
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
4290
snapshots:
4391
- completed:
4492
size: 496697

0 commit comments

Comments
 (0)