Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit f969549

Browse files
author
Mateu Aguiló Bosch
committed
ci: use vendor bin
1 parent fa00549 commit f969549

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ env:
2828
- PROJECT_NAME=contentacms
2929
- PROJECT_BASE_PATH=$HOME/$PROJECT_NAME
3030
- PROJECT_RELEASE_BRANCH=${PROJECT_RELEASE_BRANCH:-8.x-1.x}
31+
- WEB_HOST=127.0.0.1
32+
- WEB_PORT=8888
3133

3234
branches:
3335
only:
@@ -43,8 +45,8 @@ before_install:
4345
- source ./scripts/ci/travis/load_env.sh
4446

4547
install:
46-
- composer run-script install-contenta $PROJECT_BASE_PATH --timeout=0
47-
- composer run-script ci:helper setup_anonymous_user "$PROJECT_BASE_PATH" --timeout=0
48+
- composer run-script start-contenta $PROJECT_BASE_PATH --timeout=0 &> /dev/null &
49+
- until curl -s $WEB_HOST:$WEB_PORT; do sleep 1; done > /dev/null
4850

4951
before_script:
5052
# Start Contenta Local Server

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ composer create-project contentacms/contenta-jsonapi-project <DESTINATION> --sta
2727
cd <DESTINATION>/web
2828
```
2929
- Install the site with either of these databases:
30-
- SQLite `../bin/drush si contenta_jsonapi --db-url=sqlite://sites/default/files/.ht.sqlite -y` or
31-
- MySQL `../bin/drush si contenta_jsonapi --db-url=mysql://root:pass@localhost:3306/dbname -y`
32-
- PostgreSQL `../bin/drush si contenta_jsonapi --db-url=pgsql://root:pass@localhost:5432/dbname -y`
33-
- Start the web server with `../bin/drush runserver`. This defaults to `127.0.0.1:8888`, you can change this by appending a new host and port, e.g. `../bin/drush runserver local.contentacms.io:8000`
34-
- Generate a one-time login link `../bin/drush user-login --uri="http://127.0.0.1:8888"`
30+
- SQLite `../vendor/bin/drush si contenta_jsonapi --db-url=sqlite://sites/default/files/.ht.sqlite -y` or
31+
- MySQL `../vendor/bin/drush si contenta_jsonapi --db-url=mysql://root:pass@localhost:3306/dbname -y`
32+
- PostgreSQL `../vendor/bin/drush si contenta_jsonapi --db-url=pgsql://root:pass@localhost:5432/dbname -y`
33+
- Start the web server with `../vendor/bin/drush runserver`. This defaults to `127.0.0.1:8888`, you can change this by appending a new host and port, e.g. `../vendor/bin/drush runserver local.contentacms.io:8000`
34+
- Generate a one-time login link `../vendor/bin/drush user-login --uri="http://127.0.0.1:8888"`
3535

3636
### CURL
3737

@@ -69,7 +69,7 @@ In order to allow browsers to request the contenta back-end you need to:
6969
maxAge: false
7070
supportsCredentials: false
7171
```
72-
* Run drush: ```cd <DESTINATION>/web && ../bin/drush cr```
72+
* Run drush: ```cd <DESTINATION>/web && ../vendor/bin/drush cr```
7373

7474
## Development
7575

0 commit comments

Comments
 (0)