@@ -5,15 +5,13 @@ before_script:
55 export PACKAGE_VERSION=$(npm version patch)
66 npm install -g documentation
77 npm run doc
8-
98 fi
10- # 1224c2be85d445ec6ddb436cb07074344de86e1d 1224c2be85d445ec6ddb436cb07074344de86e1d
11- # 1224c2be85d445ec6ddb436cb07074344de86e1d
12- # 1b40f86d09b167693bbd72677f89d3b425363f9e
9+
1310language : node_js
1411sudo : required
1512node_js :
1613 - " stable"
14+
1715# travis call prepare
1816# Send coverage data to Coveralls
1917# Deploy terminusdb/terminus-client
@@ -23,7 +21,6 @@ after_script:
2321branches :
2422 only :
2523 - clientBuild
26- # script: if [[ $TRAVIS_COMMIT_MESSAGE == *"trigger build"* ]]; then mvn install ; fi ;
2724
2825before_deploy :
2926 - |
@@ -32,32 +29,13 @@ before_deploy:
3229 echo "___TRAVIS_VAR____"
3330 export TRAVIS_VAR="1.$TRAVIS_BUILD_NUMBER"
3431
35- echo $PACKAGE_VERSION
36- git config --local user.name "Francesca-Bit"
37- git config --local user.email "[email protected] " 38- git checkout -b tmp
3932 git commit --amend -m "[skip travis] version changed $PACKAGE_VERSION"
40- git push https://Francesca-Bit:$ [email protected] /terminusdb/terminus-client.git HEAD:clientBuild 33+ git push https://${ GITHUB_TOKEN} @github.com/$TRAVIS_REPO_SLUG HEAD:$TRAVIS_BRANCH
4134 git tag -f -a "$PACKAGE_VERSION" -m "new version $PACKAGE_VERSION"
42- export LAST_HASH=$(git ls-remote https://github.com/terminusdb/terminus-client.git clientBuild | awk '{ print $1}')
35+ export LAST_HASH=$(git ls-remote https://github.com/$TRAVIS_REPO_SLUG $TRAVIS_BRANCH | awk '{ print $1}')
4336 echo $LAST_HASH
4437 fi
4538
46- # git tag -f -a "$PACKAGE_VERSION" -m "new version $PACKAGE_VERSION"
47- # git remote set-url origin https://Francesca-Bit:[email protected] /terminusdb/terminus-client.git48-
49-
50- # [skip travis] commit_message dosen't work in this travis version
51- # - provider: pages
52- # skip-cleanup: true
53- # target-branch: master # Commit to master instead of gh-pages
54- # github-token: $GITHUB_TOKEN
55- # commit_message: "Deploy from travis [skip travis]"
56- # keep-history: true # By default, Travis uses push --force and wipes out commit history
57- # verbose: true
58- # on:
59- # branch: master
60-
6139deploy :
6240 - provider : script
6341 skip_cleanup : true
@@ -71,7 +49,6 @@ deploy:
7149 keep_history : true
7250 api_key : $GITHUB_TOKEN
7351 skip_cleanup : true
74- file : package.json
7552 overwrite : true
7653 on :
7754 branch : clientBuild
0 commit comments