Skip to content

Commit b5f0430

Browse files
committed
fix(ci): networking part2
1 parent a3deb97 commit b5f0430

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

.circleci/config.yml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,41 @@ version: 2.1
22

33
# TODO(DP): the following context declaration does not appear to be working
44
context: FusionDB_images
5-
docker:
6-
- image: 'existdb/existdb:latest'
7-
auth:
8-
username: duncdrum
9-
password: $DOCKER_TMP_PW
5+
6+
executors:
7+
node14-exist:
8+
docker:
9+
- image: 'cypress/base-14'
10+
auth:
11+
username: duncdrum
12+
password: $DOCKER_TMP_PW
13+
- image: 'existdb/existdb:latest'
14+
auth:
15+
username: duncdrum
16+
password: $DOCKER_TMP_PW
1017

1118

1219
# see https://circleci.com/developer/orbs/orb/cypress-io/cypress
1320
orbs:
14-
cypress: cypress-io/cypress@1.27.0
15-
# TODO(DP): There is a bug here somewhere
21+
cypress: cypress-io/cypress@1.28.0
22+
# TODO(DP): There is a bug here somewhere as we can run neither with nor without authentication creds.
1623
# executors:
1724
# node12-exist:
1825
# docker:
19-
# - image: 'cypress/base-12'
20-
# auth:
21-
# username: duncdrum
22-
# password: $DOCKER_TMP_PW
23-
# environment:
24-
# API_PORT: 8080
26+
# - image: 'cypress/base-14'
27+
# auth:
28+
# username: duncdrum
29+
# password: $DOCKER_TMP_PW
30+
# - image: 'existdb/existdb:latest'
31+
# auth:
32+
# username: duncdrum
33+
# password: $DOCKER_TMP_PW
2534

2635
workflows:
2736
build:
2837
jobs:
2938
- cypress/run:
30-
executor: cypress/base-14
39+
executor: node14-exist
3140
context: FusionDB_images
3241
yarn: true
3342
post-checkout:
@@ -39,19 +48,19 @@ workflows:
3948
- setup_remote_docker:
4049
version: 20.10.2
4150
docker_layer_caching: false
42-
start: cd browser-app && yarn start
51+
start: cd browser-app && yarn theia start --hostname 0.0.0.0 --port 3000
4352
post-install:
4453
- run: |
4554
wget https://github.com/evolvedbinary/fusion-studio-api/releases/download/1.2.0/fusion-studio-api-1.2.0.xar
4655
docker create -v /exist/autodeploy --name pkg alpine:3.4 /bin/true
4756
docker cp *.xar pkg:/exist/autodeploy
4857
docker run -dit -p 8080:8080 --name exist-ci --rm --volumes-from pkg existdb/existdb:latest
49-
- run: curl http://localhost:8080
58+
- run: curl --retry 5 http://localhost:8080
5059
# TODO(DP):
5160
# - see #379 use e.g. -e API_PORT=8080, or context/executor declaration to set working (!) env variables
5261
# - s.a. to sidestep auth bug: docker login repo.evolvedbinary.com:9543 -u FDB_NIGHTLY_DOCKER_USER -p FDB_NIGHTLY_DOCKER_PASS
5362
command: npx cypress run
54-
no-workspace: true
63+
no-workspace: false
5564
record: true
5665
store_artifacts: true
5766
tags: 'eXist-db,latest'

0 commit comments

Comments
 (0)