Run simple example in integration test

This commit is contained in:
Akshay Mankar
2019-09-06 12:56:05 +02:00
parent 747825870e
commit 68dbfff502
3 changed files with 76 additions and 3 deletions

View File

@@ -3,19 +3,35 @@ language: generic
services:
- docker
cache:
directories:
- $HOME/.stack
- $TRAVIS_BUILD_DIR/examples/.stack-work
jobs:
include:
- stage: Integration Tests
before_script:
install:
# Download and install stack
- travis_retry curl -sSL https://get.haskellstack.org/ | sh
# Download and install kubectl
- 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/
# Download and install kind
- 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
before_script:
# Create a new Kubernetes cluster using KinD
- kind create cluster
# Set KUBECONFIG environment variable
- export KUBECONFIG="$(kind get kubeconfig-path)"
script: kubectl get pods -A
script:
# Verify if kubernetes installation is alright
- kubectl get pods -A
# Run simple test
- |
cd examples
stack build --no-terminal
stack exec simple

View File

@@ -9,3 +9,12 @@ extra-deps:
- katip-0.8.0.0
- oidc-client-0.4.0.0
- string-random-0.1.2.0
- git: https://github.com/akshaymankar/foundation.git
commit: 31d978d94d1493a53565e1050450c434e8808bd6
subdirs:
- foundation
- basement
- git: https://github.com/akshaymankar/hs-certificate.git
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
subdirs:
- x509-validation

View File

@@ -39,6 +39,54 @@ packages:
sha256: 21c7e61fceea98d14b453fc74c947b715ce33fe4c665c65b1f28c6f417d4ab7e
original:
hackage: string-random-0.1.2.0
- completed:
subdir: foundation
cabal-file:
size: 11653
sha256: 7d6b57d3b293a46680a6c044ded62655e7b7477d1082f710162b018333ae35f5
name: foundation
version: 0.0.24
git: https://github.com/akshaymankar/foundation.git
pantry-tree:
size: 11225
sha256: 7bafcf8799e366958a20533daa5a574d5d7babb798bc26be4ef7ed48d7c580d2
commit: 31d978d94d1493a53565e1050450c434e8808bd6
original:
subdir: foundation
git: https://github.com/akshaymankar/foundation.git
commit: 31d978d94d1493a53565e1050450c434e8808bd6
- completed:
subdir: basement
cabal-file:
size: 5487
sha256: 6461d82f236ca33cd6cc502e6339f67c48506d3ebfd5de9305e3428d6f541499
name: basement
version: 0.0.11
git: https://github.com/akshaymankar/foundation.git
pantry-tree:
size: 5859
sha256: 19396c8068f1f94a17dec91a9f39cd3028a5e752837435e769ec783400711a3e
commit: 31d978d94d1493a53565e1050450c434e8808bd6
original:
subdir: basement
git: https://github.com/akshaymankar/foundation.git
commit: 31d978d94d1493a53565e1050450c434e8808bd6
- completed:
subdir: x509-validation
cabal-file:
size: 2211
sha256: 4c9d897070bf5d36e437b3b9a04c28ebb6fce90138da7b5e8fa5c100192ef7b2
name: x509-validation
version: 1.6.11
git: https://github.com/akshaymankar/hs-certificate.git
pantry-tree:
size: 631
sha256: b85641fe35b21d23b93c3b0e158ebdc77ee2877568003854d3031387f676daf7
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
original:
subdir: x509-validation
git: https://github.com/akshaymankar/hs-certificate.git
commit: cdfff1a735ddf44cf04a9712828fd62bf4a52e47
snapshots:
- completed:
size: 496697