-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
25 lines (25 loc) · 2.74 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
sudo: required
services:
- docker
branches:
only:
- master
- develop
script:
- export ENV_FILE=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "prod"; else echo
"stage"; fi`
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "production"; elif [
"$TRAVIS_BRANCH" == "develop" ]; then echo "stage"; else echo "dev-$(git rev-parse
--short HEAD)"; fi`
- docker build --no-cache -t jincort/frontend-ico-dashboard-develop:${TAG} .
- docker run --rm -v $(pwd):/usr/src/app jincort/frontend-ico-dashboard-develop:${TAG}
/bin/sh -c "yarn && cp -r .env.${ENV_FILE} .env && yarn build && yarn run lint:all"
after_success:
- bash ./scripts/docker_build_and_push.sh
notifications:
slack:
secure: ZBcow9mQfbyBpmhzJ93HvEX9W4Uvy3RxaOPefMEvTzbatALyryxt+iufHCrj+AiEskumkz37CUjgAuV9L6aVtBLfkHbmf/Ao0UGcTxJd5IFgz46vu9EeR6waeGmAHsFw76FoSrhd9xegCU2mIx6b8FdywcB2DqXz40y9G1ChLUOOi9m5VlXWqUTlFD0xHKzlbeJ+c9RbwAJCqr/6ka/Z5hLmlm3JcjylANehFKCSzoz5w90SJsVrf/i/An5PYEm8F/vA52x78COUzmmuFOmb6U8iS8suKfuBe5ANL2WW728QLqafMoYVhXoOqEoUu658XLwLWrE0xKcfjqDD9FkHuf+9aJk+/z/p+IDX6Lc38JsSn+5USD0QrQY00Vb4asTeyE+GxMg2ugmoUzt5ggQOlAt72dIkE1MZ2LscSLOM4iY6NsmOWu4U/5hdrfIcy7jpulBYGHcJPTPcyFDlojl1u0TwfNkD6uaTVQFLJbl97wfJvSYc1rn5NAHe/4+xA/NmoIN55Nlk2uFu/MvbTKGS6SQ/UGILOVQn0Nc5MhG3C5vin4Nuk86j3seCha/sJfWKmdqeAlujy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