forked from meta-magic/amexio.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (45 loc) · 1.29 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
48
49
50
51
52
53
sudo: required
dist: trusty
#install google chrome, using addons
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
sonarcloud:
organization: "deepali-arvind-github" # the key of the org you chose at step #3
token:
secure: 081e2012239f75d61242a6d1d6605f0ee29dc019 # encrypted value of your token
language: node_js
node_js:
- "8"
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
- git fetch --unshallow
script:
- gulp test
- sonar-scanner
- cd src/styles/ && sh sasstocss.sh
- cd ../../ && pwd && gulp build
- cd dist && npm pack
- mv amexio-ng-extensions-*.tgz amexio-ng-extensions.tgz
after_success:
- cd ../
- git clone https://github.com/meta-magic/amexio-ios.git -b v5.7
- cd amexio-ios
- mkdir themes
- cp -rf ../dist/amexio-ng-extensions.tgz .
# - cp -rf ../src/styles/css/* themes/
#- tar -czvf themes.tar.gz themes/*
- git add amexio-ng-extensions.tgz
- git commit -m "date"
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git push "https://deepali-arvind:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git" HEAD:v5.7 ; fi
- gulp coveralls
- codecov
cache:
yarn: true