image: silex/emacs:26.1-alpine-dev stages: - test - pre-package-multifile - package - deploy test-oni-bookmark: stage: test script: make test-oni-bookmark DEPS="oni-data-dir" test-oni-alert: stage: test script: make test-oni-alert 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 DEPS="oni-flycheck oni-company oni-fci" 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/ 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:"