Files
LingvAI/.travis.yml
David 4df0d40dcf Official Docker image (#46)
* Initial Dockerfile

* Docker added to Readme

* Added Docker to Travis
2021-09-05 16:44:05 +02:00

44 lines
619 B
YAML

language: node_js
node_js:
- lts/*
os: linux
dist: xenial
services:
- docker
addons:
apt:
packages:
- libgconf-2-4
cache:
yarn: true
directories:
- ~/.cache
branches:
only:
- main
script:
- yarn test --ci
- yarn build
- yarn start & wait-on http://localhost:3000
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ];
then
yarn cy:run --record --key $CY_KEY;
else
yarn cy:run;
fi'
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
provider: script
script: docker push thedaviddelta/lingva-translate