Skip to content
Snippets Groups Projects
Commit bd5666cf authored by Erick Hitter's avatar Erick Hitter
Browse files

Fix test step

parent 1ce522c8
No related branches found
No related tags found
1 merge request!7Migrate Pantheon build
...@@ -9,16 +9,38 @@ test-deps: ...@@ -9,16 +9,38 @@ test-deps:
stage: test stage: test
image: containers.ethitter.com:443/docker/images/php:7.3 image: containers.ethitter.com:443/docker/images/php:7.3
before_script: before_script:
- curl -sL https://deb.nodesource.com/setup_10.x | bash - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- apt-get install -y nodejs - eval $(ssh-agent -s)
- ssh-add <(echo "$GIT_SSH_PRIV_KEY")
- git config --global user.email "$GIT_USER_EMAIL"
- git config --global user.name "$GIT_USER_NAME"
- mkdir -p ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- ssh-keygen -R "$PANTHEON_GIT_HOST"
- ssh-keyscan -t rsa -p "$PANTHEON_GIT_HOST_PORT" "$PANTHEON_GIT_HOST" >> ~/.ssh/known_hosts
# TODO: add build steps here once things are converted to submodules.
# TODO: add Terminus to handle pushes and cache clearing.
script: script:
- cd ${CI_PROJECT_DIR}/wp-content/mu-plugins/solr-power - cd ${CI_PROJECT_DIR}
- composer install --no-dev --no-ansi -n - ls -la
- sed -i '/vendor\//d' .gitignore - rm -rf ${CI_PROJECT_DIR}/.git/
- sed -i '/assets\/*/d' .gitignore - rm -rf ${CI_PROJECT_DIR}/.gitignore
- npm install - rm -rf ${CI_PROJECT_DIR}/.gitmodules
- ./node_modules/grunt/bin/grunt - rm -rf ${CI_PROJECT_DIR}/.gitlab-ci.yml
- rm -rf ./node_modules - rm -rf ${CI_PROJECT_DIR}/README.md
- rm -rf ${CI_PROJECT_DIR}/readme.txt
- ls -la
- git init
- git status -s
- git add -A
- git status -s
- git commit -m "Build from $CI_COMMIT_SHORT_SHA"
- git diff --exit-code
- git status -s
- git log -n 1
git-push: git-push:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment