forked from apiel/test-crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml.bak
More file actions
32 lines (27 loc) · 780 Bytes
/
Copy path.travis.yml.bak
File metadata and controls
32 lines (27 loc) · 780 Bytes
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
language: node_js
node_js:
- 'node'
branches:
only:
- master
- develop
- /^release-.*/
install:
- git config --global user.email "build@travis-ci.com"
- git config --global user.name "Travis CI"
# we should be able to take this from env var
- GH_REPO="github.com/apiel/test-crawler.git"
script:
- cd packages/example-travis
- yarn --prod
- yarn start > /dev/null &
- sleep 5
- yarn test:crawler:cli
# only push change if found diff
after_failure:
- git checkout ${TRAVIS_BRANCH}
- git add -A .
- git commit -m "travis commit, test-crawler [ci skip]"
- git status
- git pull
- git push "https://${GITHUB_TOKEN}@${GH_REPO}" ${TRAVIS_BRANCH} > /dev/null 2>&1 # should always escape output, for security issue, else token could be visible