mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Added docker:dind as a gitlab service.
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
image: funcy/go-dind:latest
|
image: docker:latest
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_COMMIT_REF_NAME"
|
key: "$CI_COMMIT_REF_NAME"
|
||||||
@@ -18,13 +21,13 @@ before_script:
|
|||||||
build_job:
|
build_job:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- go build -o functions-alpine
|
- make docker-build
|
||||||
|
|
||||||
build_job_fn:
|
build_job_fn:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd fn
|
- cd fn
|
||||||
- go build -o fn-alpine
|
- make build
|
||||||
|
|
||||||
formatting:
|
formatting:
|
||||||
stage: build
|
stage: build
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ dep-up:
|
|||||||
glide up -v
|
glide up -v
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test $(go list ./... | grep -v /vendor/ | grep -v /tests)
|
|
||||||
./test.sh
|
./test.sh
|
||||||
|
|
||||||
test-integration:
|
test-integration:
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ make build
|
|||||||
export fn="$(pwd)/fn"
|
export fn="$(pwd)/fn"
|
||||||
$fn --version
|
$fn --version
|
||||||
|
|
||||||
|
go test $(go list ./... | grep -v /vendor/ | grep -v /tests)
|
||||||
|
|
||||||
# This tests all the quickstart commands on the cli on a live server
|
# This tests all the quickstart commands on the cli on a live server
|
||||||
rm -rf tmp
|
rm -rf tmp
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cd tmp
|
cd tmp
|
||||||
funcname="tn-test-go"
|
funcname="fn-test-go"
|
||||||
$fn init --runtime go $DOCKER_USERNAME/$funcname
|
$fn init --runtime go $DOCKER_USERNAME/$funcname
|
||||||
$fn test
|
$fn test
|
||||||
|
|
||||||
@@ -20,8 +22,9 @@ sleep 10
|
|||||||
export API_URL="http://localhost:$someport"
|
export API_URL="http://localhost:$someport"
|
||||||
$fn apps l
|
$fn apps l
|
||||||
$fn apps create myapp
|
$fn apps create myapp
|
||||||
|
$fn apps l
|
||||||
$fn deploy myapp
|
$fn deploy myapp
|
||||||
$fn call myapp $DOCKER_USERNAME/$funcname
|
$fn call myapp $funcname
|
||||||
|
|
||||||
docker rm --force functions
|
docker rm --force functions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user