diff --git a/.travis.yml b/.travis.yml index 12ebae858c..7dd0e6f15e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,13 @@ cache: directories: - $HOME/downloads -install: mvn compile +branches: + only: + - master + - /^release-.*$/ + - /^test-.*$/ + +install: mvn compile -Dmaven.javadoc.skip=true before_script: - | @@ -29,46 +35,65 @@ before_script: $TRAVIS_DIR/install-hbase.sh fi -script: mvn test -Pcore-test,$BACKEND - -before_deploy: +script: + - mvn test -P core-test,$BACKEND - | - if [ "$DEPLOYED" == "false" ]; then - DEPLOYED=true - mvn cobertura:cobertura > /dev/null && bash <(curl -s https://codecov.io/bash) - mvn clean package -DskipTests - else - echo "Skipping before_deploy since it has been executed once." + if [ "$BACKEND" == "memory" ]; then + mvn test -P unit-test fi + - | + if [[ "$TRAVIS_BRANCH" =~ $RELEASE_BRANCH ]]; then + mvn test -P tinkerpop-structure-test,$BACKEND + fi + - | + if [[ "$TRAVIS_BRANCH" =~ $RELEASE_BRANCH ]]; then + mvn test -P tinkerpop-process-test,$BACKEND + fi + +jobs: + include: + - stage: deploy + if: tag IS present && branch =~ env(RELEASE_BRANCH) + script: skip -deploy: - - provider: script - skip_cleanup: true - script: - echo $GPG_KEY_ENC_PASSW | gpg -d --passphrase-fd 0 .private-key.gpg.gpg | gpg --import && - mvn deploy --settings .maven.xml -DskipTests=true -B -U -Prelease - on: - tags: true - - provider: releases - skip_cleanup: true - file_glob: true - file: "$TRAVIS_BUILD_DIR/hugegraph-*.tar.gz" - api_key: - secure: nSGEnk5tJsTHMGABO8OJMTk47L3QA2O4xHXLKGIuTK5kLGJkrl0Bs27IveggLxf1E7DSrhcfNW44yIjn5lWA/5QX3DweWH4FGDAgWYFyj7QsBZl7WT2NReMW7BLzpvsIjyEKDw5pLbYBOpOrHflmyQB4w0oXTZVl6awll7JicuL1air7lpqJ4Ju4ukj1mo6rcX3MHRkzgMuS5eemArm8T15y9IlDqK3gmjVUOVo7LoYDFaq3eMzQ7ufrOFiiVIV2LUxn2t2/YRcKU05zal4IKifMKbXISX5u7ZwYe8T14ZQ7eMTOzmFY21gv3HEg+KXWh4gq8HvG4FKbzrl+KYSacJ1xINJQaQGIOD7Pz7vzQdj9wpM/WLqmYF5SE5ZYzXV3ejrtYlEUpJQSnpyiHlfyRuDRzYq/dB2V1ua6t9xkbjL/a2uqHa9WjbOi1jqw2E2XSnx794pzCvKYn1RLOiqpzVlEnb3cPb5M7vl9wsGf5MFLS8zLmMa5DyJn+e45W6GpW1zT4uLl2yR3Ja9ROlVapAb4aMyhKnWQZtUMDVhD6Xjj/CAumeOQLe31NM3i8NK2L0iEYSFWUigLEcCapXo3aOVlzckdJ6p7k94dFd5wcg/EY2aFMhyjYUKUFP1V535uB4ZKvf/dotMKY29nsYyceYgOJ/VNZt2BPZ8oCdc8+ys= - on: - tags: true + before_deploy: + - | + if [ $DEPLOYED = 0 ]; then + DEPLOYED=1 + mvn cobertura:cobertura > /dev/null && bash <(curl -s https://codecov.io/bash) + mvn clean package -DskipTests + else + echo "Skipping before_deploy since it has been executed once." + fi + deploy: + - provider: script + skip_cleanup: true + script: + echo $GPG_KEY_ENC_PASSW | gpg -d --passphrase-fd 0 $TRAVIS_DIR/private-key.gpg.gpg | gpg --import && + mvn deploy --settings $TRAVIS_DIR/maven.xml -DskipTests=true -B -U -P release + on: + tags: true + - provider: releases + skip_cleanup: true + file_glob: true + file: "$TRAVIS_BUILD_DIR/hugegraph-*.tar.gz" + api_key: + secure: nSGEnk5tJsTHMGABO8OJMTk47L3QA2O4xHXLKGIuTK5kLGJkrl0Bs27IveggLxf1E7DSrhcfNW44yIjn5lWA/5QX3DweWH4FGDAgWYFyj7QsBZl7WT2NReMW7BLzpvsIjyEKDw5pLbYBOpOrHflmyQB4w0oXTZVl6awll7JicuL1air7lpqJ4Ju4ukj1mo6rcX3MHRkzgMuS5eemArm8T15y9IlDqK3gmjVUOVo7LoYDFaq3eMzQ7ufrOFiiVIV2LUxn2t2/YRcKU05zal4IKifMKbXISX5u7ZwYe8T14ZQ7eMTOzmFY21gv3HEg+KXWh4gq8HvG4FKbzrl+KYSacJ1xINJQaQGIOD7Pz7vzQdj9wpM/WLqmYF5SE5ZYzXV3ejrtYlEUpJQSnpyiHlfyRuDRzYq/dB2V1ua6t9xkbjL/a2uqHa9WjbOi1jqw2E2XSnx794pzCvKYn1RLOiqpzVlEnb3cPb5M7vl9wsGf5MFLS8zLmMa5DyJn+e45W6GpW1zT4uLl2yR3Ja9ROlVapAb4aMyhKnWQZtUMDVhD6Xjj/CAumeOQLe31NM3i8NK2L0iEYSFWUigLEcCapXo3aOVlzckdJ6p7k94dFd5wcg/EY2aFMhyjYUKUFP1V535uB4ZKvf/dotMKY29nsYyceYgOJ/VNZt2BPZ8oCdc8+ys= + on: + tags: true env: matrix: - BACKEND=memory - BACKEND=cassandra - BACKEND=scylladb - - BACKEND=rocksdb - BACKEND=mysql - BACKEND=hbase + - BACKEND=rocksdb global: - - DEPLOYED=false + - RELEASE_BRANCH=^release-.* - TRAVIS_DIR=hugegraph-dist/src/assembly/travis + - DEPLOYED=0 - secure: dYmFTVeEtRzLNaHp9ToTV/+CkTD0/rEj+K7dRN8wsv/yg4pbqwnyWbSXcqMlj6iNFzAz3nPbmFLCvAWON9/SMN9iJIT6x/xfcf+LqCT8QWczo2nc9xeX144ij2VHX1Drvtk5fRTMaTXRfWEQIrjqx2yrJTIdrXWzWSaZLFv1CRCUizEiGGCePnzUWxx9dBypNyC6IaH6lIv8uN5E6+10SYhb7UJGjWUMDg1bCeW9X7X2wg4QpsGDzlGFXT2EBPU/dAb5attTAtW8dKxrCZqZJTPWe0BarXDBR4PO15BC+a0V1g8LwexedtDjJeFRcGPaJ5NN4d3jDSusCzt5Jf4U0Wa1gDRMVTU3jT+KYkm5eoV4wOZMySobjh6VpQH/LyL0QTDy5apRPAxw+wO+tc91P+nkJmnlr3pN8abtMZ6NciZizUBYQRgR/m2Ir0stvtbZxBQOATuPtBgNDKiDgVdSYcRJzSqYEMFOn35AvsDZ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TZC8WLqn0Kl7UxMy6i/xmK1F+apLooFIBEXYZuoH3pY83L4BvPozmJzT66HonrfcnaifaVHShBntPhQ6Sjlq5suMhtQENcPqWxaORL69s6Y/uF+RAdmnRHPZnXFhjRvq3rQAdMKM/DBOcaYlu1aIxCJJmWLm+b+75EQgdtwYGtwDpunzKXzH7ewB6rTYAghJNjGxt/KfROniooAs8mO3DqhygV5/BInJk0aKab5GlHCAioesV7TKSObhSDlKU8CSBRr/j8T7anL+lkXVZ89fkGg+EBSoXkVCNwQjank1NrHWCJQpNVndHzWIoGk0gcjTf01+iMDGIJDQZhcEuLu8wZbvDjLo/qEah247G0JabDMNBdyMZpg96bWDgArMkWa2FnWX25A7Cfgm1JymXdOZCIJrHbYWWAyoaXNrjZezQ8NPnE5uOWJIKfBnjnyPtKPoWjLuqpXmqcggbl8iRiy1EdWs/N39Q7qcFtJ5lTN9q1kDeI= diff --git a/.maven.xml b/hugegraph-dist/src/assembly/travis/maven.xml similarity index 91% rename from .maven.xml rename to hugegraph-dist/src/assembly/travis/maven.xml index 1153bd07f5..d77a0f3fd1 100644 --- a/.maven.xml +++ b/hugegraph-dist/src/assembly/travis/maven.xml @@ -10,7 +10,7 @@ release - true + false gpg diff --git a/.private-key.gpg.gpg b/hugegraph-dist/src/assembly/travis/private-key.gpg.gpg similarity index 100% rename from .private-key.gpg.gpg rename to hugegraph-dist/src/assembly/travis/private-key.gpg.gpg