-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (34 loc) · 2.75 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
sudo: required
services:
- docker
before_install:
- sudo apt-get install jq
- sudo pip install --upgrade awscli
- sudo pip install --upgrade awsebcli
- ./deploy/scripts/travis_decrypt.sh
- mkdir -p frontend/src/vendor
- git clone https://github.com/toggle-corp/react-store.git frontend/src/vendor/react-store
- git --git-dir=frontend/src/vendor/react-store/.git --no-pager show --pretty=fuller --quiet
- cp frontend/src/vendor/react-store/stylesheets/_user-imports-sample.scss frontend/src/vendor/react-store/stylesheets/_user-imports.scss
- git clone https://github.com/toggle-corp/ravl.git frontend/src/vendor/ravl
- git --git-dir=frontend/src/vendor/ravl/.git --no-pager show --pretty=fuller --quiet
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- env > .env
- docker-compose build
before_script:
- docker-compose up -d
- ./cc-test-reporter before-build
script:
- docker-compose exec web /code/scripts/run_tests.sh
- cd frontend ; ../cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -p frontend/ ; cd ..
- cd backend ; ../cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -p backend/ ; cd ..
after_success:
- ./deploy/scripts/travis_deploy.sh ;
notifications:
slack:
rooms:
- secure: "V74yUcOmhjKMCyvX5DxZrdOEfkJmzwlB4jqUXCLHYI9maIj8wQGjgXTKjANHgHg4jJheStGXmjTN6cIpk4WLN5YS3DeaKpdpotrUp3m2BV+nt5cPEpjdeQVo5Biii+JY7D/0aiRre15BlT4m0GhrIaR1Gqto5LUNS1sRoF05nn0B8MnhFczcVdk3XipfRgeyvzZ7oWTaFnWN1TQXaqMesJYoBE2Jg0j6Jis6fZO2Mwuk2nxLzm4KptlLCZHPPXLm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