-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
51 lines (41 loc) · 1.08 KB
/
.travis.yml
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
47
48
49
50
51
language: node_js
node_js:
- "11"
services:
- mongodb
before_script:
- cd back-end && yarn install && cd ..
- cd front-end && yarn install && cd ..
script:
- cd back-end && yarn test-ci && cd ..
- cd front-end && yarn test && yarn lint && cd ..
before_deploy:
- >
if ! [ "$BEFORE_DEPLOY_RUN" ]; then
export BEFORE_DEPLOY_RUN=1;
git config --local user.name "David Correa"
git config --local user.email "[email protected]"
export TRAVIS_TAG=${TRAVIS_TAG:-'Release'-$(date +'%Y-%m-%d-%H%M%S')}
git tag $TRAVIS_TAG
cd front-end/ && yarn run build
cd ..
fi
deploy:
- provider: script
script: bash ./scripts/build-images.sh $DOCKER_USERNAME $DOCKER_PASSWORD
on:
branch: master
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
target-branch: gh-pages
local-dir: front-end/build
on:
branch: master
- provider: releases
name: "Revolución Industrial - 3Pines"
api_key: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master