image: silex/emacs:26.1-alpine-dev stages: - pre-package-multifile - test - package - deploy package-oni-conf: stage: pre-package-multifile before_script: - rm -rf oni-conf/dist script: - cask --path oni-conf package artifacts: paths: - oni-conf/dist/ test-oni-alert: stage: test script: make test-oni-alert test-oni-bookmark: stage: test script: make test-oni-bookmark test-oni-conf: stage: test dependencies: - package-oni-conf needs: [package-oni-conf] script: make test-oni-conf test-oni-css: stage: test script: make test-oni-css test-oni-grep: stage: test script: make test-oni-grep test-oni-highlight-indent-guides: stage: test script: make test-oni-highlight-indent-guides test-oni-php: stage: test script: make test-oni-php package: stage: package dependencies: - package-oni-conf before_script: - rm -rf bin/ - mkdir bin/ script: make package artifacts: paths: - bin/ deploy: stage: deploy dependencies: - package before_script: - chmod 600 "$DEPLOY_KEY" - apk update && apk add rsync script: - rsync -e "ssh -o \"UserKnownHostsFile $KNOWN_HOSTS\" -p 4511 -i $DEPLOY_KEY" -v -c -r --delete bin/ "elpa@ryuslash.org:"