mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Run seeds without docker-compose
I give up with running docker-compose on Travis CI. Using `bash` instead of Linux alpine's `sh` does **not** fix the issue as suggested here: https://github.com/kimmobrunfeldt/concurrently/issues/104
This commit is contained in:
parent
f1c3c6bede
commit
d201d73670
13
.travis.yml
13
.travis.yml
@ -7,21 +7,16 @@ cache:
|
||||
- node_modules
|
||||
services:
|
||||
- docker
|
||||
env:
|
||||
- DOCKER_COMPOSE_VERSION=1.23.2
|
||||
|
||||
before_install:
|
||||
- sudo rm /usr/local/bin/docker-compose
|
||||
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
||||
- chmod +x docker-compose
|
||||
- sudo mv docker-compose /usr/local/bin
|
||||
- neo4j
|
||||
|
||||
install:
|
||||
- yarn install
|
||||
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT -t humanconnection/nitro-backend:latest .
|
||||
|
||||
script:
|
||||
- docker run humanconnection/nitro-backend:latest yarn run eslint
|
||||
- docker-compose run --rm backend yarn run db:seed # seeding needs neo4j
|
||||
- yarn run db:reset
|
||||
- yarn run db:seed
|
||||
|
||||
after_success:
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user