forked from secret-tech/backend-ico-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (19 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo: required
services:
- docker
before_install:
- chmod ugo+x ./scripts/build.sh
- cp -r .env.test .env
- docker-compose build
- docker-compose run -u 0 --no-deps --rm ico sh -c "yarn install"
script:
- docker-compose up -d
- docker-compose exec -u 0 ico sh -c "yarn test"
- 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`
after_success:
- "bash ./scripts/build.sh $TAG"
notifications:
slack:
secure: YDfplGp9dwFLliajyhVrmxqYt77KexeY8A4id5SM18caiVhhsuFrc3pwUvf5cP8BBHueSsbipU2hektNEKsZDaSeQ/PsZWSOzfTYBuQKKnmJRBI/HlN7ls9Z3YXlEp3st8QldzKQPB54WNDVnM15yNeC223Z87jazF91i1LOU2D4OCHZyvNE7qj1wSgdCbZyBtJPyXwBswdW3siRxF3I9fXK8/NCA1/T5v0zNdnI2nznL6SuC6SIOTT2lEyDgDDiSjT/yUrr1Qi2P2WWhUqxiT9rB+OVoY9Z7vNDOehd2TTC/j6OkqPFNZhcxlfvhAEmOmh8jejJftGgwKFzT1OQkSVPFNm0XQTrRJ/of5ig6KL9eWdtXfqeFl97+oO+UKOYpbHpd6Oze0t2l5Ilg2fjnDXPWI/BiAgrc7xX5cna2IJLM6FLFBh1y5KtEL8rKV7EyOKYhO7fjPgnRFUGx7CZur+s9pKljgy1Jlp/34UCHN7pO84b/kag5L4T9FhQHIHnC9QU/Qrr9/cs4A062fjj0sfnJ7STyZsYGS+A5AX5p2Fl5vIAB6rbGJ7JHY2b3UT1New4AjrCIWh5tsPXHgZTpvyjBJ4TQcChQ6faZ1W8ZyrNuNje9tHDOYljnhjfSzglGw4Y74g6iaGsycDv1nYcdqomDzp/3UiOA2IJghLiZ74=