diff --git a/.travis.yml b/.travis.yml index 2a9152628ca2b0ac80edcd6226517556a2282111..0de97ef668f6450eb06a0e598c2fbbb84b728c08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,22 +12,13 @@ env: - NODE_OPTIONS=--max-old-space-size=7250 - NPM_TAG=latest - RELEASE_VERSION="0.1.0-prerelease.$(date +'%Y%m%d%H%M%S')" - - SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH cache: directories: - node_modules -before_install: -# package-lock.json was introduced in npm@5 -- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9 -- npm install -g greenkeeper-lockfile install: - npm --production=false install -- npm --production=false update -before_script: greenkeeper-lockfile-update script: - npm test -- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run test:smoke; fi -after_script: greenkeeper-lockfile-upload before_deploy: - > if [ -z "$BEFORE_DEPLOY_RAN" ]; then @@ -44,7 +35,6 @@ deploy: branch: - master - develop - - smoke - hotfix/* condition: $TRAVIS_EVENT_TYPE != cron skip_cleanup: true @@ -61,18 +51,6 @@ deploy: condition: $TRAVIS_EVENT_TYPE != cron skip_cleanup: true script: if npm info scratch-gui | grep -q $RELEASE_VERSION; then git tag $RELEASE_VERSION && git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git $RELEASE_VERSION; fi -- provider: s3 - on: - branch: - - master - - $PREVIEW_BRANCH - condition: $TRAVIS_EVENT_TYPE != cron - access_key_id: $AWS_ACCESS_KEY_ID - secret_access_key: $AWS_SECRET_ACCESS_KEY - bucket: $AWS_BUCKET_NAME - acl: public_read - skip_cleanup: true - local_dir: build - provider: script on: all_branches: true @@ -86,5 +64,3 @@ deploy: condition: $TRAVIS_EVENT_TYPE == cron skip_cleanup: true script: npm run i18n:src && npm run i18n:push -after_deploy: -- 'curl -X POST -H "Fastly-Key: $FASTLY_TOKEN" -H "Accept: application/json" https://api.fastly.com/service/$FASTLY_SERVICE_ID/purge_all'