-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
44 lines (40 loc) · 1.09 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
sudo: required
dist: trusty
#install google chrome, using addons
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
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
- npm install --global gulp --save
- gem install sass
- npm install
- npm install d3@^5.7.0
- ng build --prod amexio-chart-d3 && sh copycss.sh
- npm pack dist/amexio-chart-d3/
- mv amexio-chart-d3-*.tgz amexio-chart-d3.tgz
script:
- cd ..
- pwd
- git clone https://github.com/meta-magic/d3-charts-tar.git
- cd /home/travis/build/meta-magic/d3-charts-tar
- cp -rf ../d3.amexio.github.io/amexio-chart-d3.tgz .
- git add amexio-chart-d3.tgz
- git commit -m "date"
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git push --quiet "https://deepali-arvind:${D3CHART_TOKEN}@github.com/meta-magic/d3-charts-tar.git" HEAD:master; fi
after_success:
- codecov
cache:
yarn: true