forked from A-gambit/CSS-IN-JS-Benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (32 loc) · 1.03 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
sudo: required
language: node_js
node_js:
- '8'
services:
- docker
before_install:
- docker pull justinribeiro/chrome-headless
- docker run -d --net host justinribeiro/chrome-headless
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- docker ps -a
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
install:
- yarn add lerna
- lerna bootstrap --npm-client=yarn
- yarn
cache:
yarn: true
script:
- npm run benchmark
after_success:
- git config user.name "A-gambit"
- git config user.email "a.gambit.gregory@gmail.com"
- git config user.password $GIT_TOKEN
- git remote add upstream "https://$GIT_TOKEN@github.com/A-gambit/CSS-IN-JS-Benchmarks.git"
- git fetch upstream
- git reset upstream/$BRANCH
- git add RESULT.md
- git commit -m 'Travis CI Automaticaly Benchmarks Update [ci skip]'
- git push -q upstream HEAD:$BRANCH