.gitlab-ci.yml 652 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. stages:
  2. - build
  3. - test
  4. - deploy
  5. cache:
  6. paths:
  7. - vendor/
  8. before_script:
  9. # - sudo cp ci/.envCi .env
  10. # - sudo bash ci/installEnv.sh
  11. build:
  12. stage: build
  13. tags:
  14. - testwas
  15. script:
  16. - echo "build ....."
  17. test:
  18. stage: test
  19. tags:
  20. - testwas
  21. script:
  22. - echo "run test....."
  23. # - path=`pwd`
  24. # - sudo bash ci/judgePush.sh $path
  25. # - vendor/bin/phpunit --testsuite=Unit
  26. deploy:
  27. stage: deploy
  28. tags:
  29. - testwas
  30. script:
  31. - echo "deploy ...."
  32. # - cd /var/www/bswas_test && sudo git config --global credential.helper store
  33. # - sudo git pull
  34. # - sudo bash ci/executeCommand.sh
  35. # only:
  36. # - master