-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 loc) · 1.38 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
sudo: required
dist: trusty
#install google chrome, using addons
addons:
env:
global:
language: node_js
node_js:
- "8"
before_install:
- composer config --global github-oauth.github.com "$GITHUB_TOKEN"
before_script:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm install
- npm i https://github.com/meta-magic/d3-charts-tar/blob/v1.2/amexio-chart-d3.tgz?raw=true
- npm i https://github.com/meta-magic/amexio-ios/blob/v5.20.1/amexio-ng-extensions.tgz?raw=true
- rm -rf src/assets/themes/*
- cp -rf node_modules/amexio-ng-extensions/styles/css/*.css src/assets/themes/
- cp -rf node_modules/amexio-ng-extensions/styles/css/*.png src/assets/themes/
- ng build --prod
after_success:
- codecov
- git add src/assets/themes
- git commit -m "[skip travis] themes-updated"
- git push "https://deepali-arvind:${TOKEN_REPO}@github.com/${REPO}.git" HEAD:v5.20
- git clone https://github.com/meta-magic/amexio-api-website-test.git
- rm -rf amexio-api-website-test/api/v5.20/*
- cp -rf /home/travis/build/meta-magic/Amexio5API/dist/* amexio-api-website-test/api/v5.20/
- cd amexio-api-website-test/
- git add api/v5.20/
- git commit -m "${COMMIT}"
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git push "https://deepali-arvind:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git" HEAD:master; fi
cache:
yarn: true