-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy path.travis.yml
More file actions
46 lines (36 loc) · 732 Bytes
/
Copy path.travis.yml
File metadata and controls
46 lines (36 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: node_js
node_js:
- lts/*
os: linux
dist: focal
services:
- docker
addons:
apt:
packages:
- libgconf-2-4
cache:
yarn: true
directories:
- ~/.cache
branches:
only:
- main
script:
- yarn test --ci
- NEXT_PUBLIC_FORCE_DEFAULT_THEME=light 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
- docker build -t thedaviddelta/lingva-translate .
deploy:
provider: script
script: docker push thedaviddelta/lingva-translate
on:
branch: main