pull/3285/head
filip mertens 2 years ago
parent 6a03e8fba4
commit ee909fcc76
  1. 40
      .circleci/config.yml
  2. 49
      apps/remix-ide/ci/remixd_test.zsh

@ -76,43 +76,6 @@ jobs:
- run: node dist/libs/remix-tests/bin/remix-tests ./libs/remix-tests/tests/examples_0/assert_ok_test.sol - run: node dist/libs/remix-tests/bin/remix-tests ./libs/remix-tests/tests/examples_0/assert_ok_test.sol
- run: yarn run test:libs - run: yarn run test:libs
remixd:
docker:
- image: cimg/node:14.17.6-browsers
resource_class:
xlarge
working_directory: ~/remix-project
steps:
- browser-tools/install-browser-tools
- run:
command: |
google-chrome --version
firefox --version
geckodriver --version
chromedriver --version
rm LICENSE.chromedriver 2> /dev/null
- checkout
- attach_workspace:
at: .
- run: unzip ./persist/dist.zip
- restore_cache:
keys:
- v1-deps-{{ checksum "yarn.lock" }}
- run: yarn
- run: yarn run downloadsolc_assets_e2e && yarn run downloadsolc_assets_dist
- run: ls -la ./dist/apps/remix-ide/assets/js
- run: yarn run selenium-install || yarn run selenium-install
- run:
name: Start Selenium
command: yarn run selenium
background: true
- run: ./apps/remix-ide/ci/remixd_test.zsh
- store_test_results:
path: ./reports/tests
- store_artifacts:
path: ./reports/screenshots
remix-ide-browser: remix-ide-browser:
docker: docker:
- image: cimg/node:14.17.6-browsers - image: cimg/node:14.17.6-browsers
@ -310,9 +273,6 @@ workflows:
matrix: matrix:
parameters: parameters:
script: ["browser_tests_plugin_api.sh", "browser_tests_etherscan_plugin.sh", "browser_tests_vyper_plugin.sh"] script: ["browser_tests_plugin_api.sh", "browser_tests_etherscan_plugin.sh", "browser_tests_vyper_plugin.sh"]
- remixd:
requires:
- build
- remix-ide-browser: - remix-ide-browser:
requires: requires:
- build - build

@ -1,49 +0,0 @@
#!/usr/bin/env bash
set -e
BUILD_ID=${CIRCLE_BUILD_NUM:-${TRAVIS_JOB_NUMBER}}
echo "$BUILD_ID"
TEST_EXITCODE=0
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
cd ..
echo $SHELL
ls -la .
pwd
# install foundry
curl -L https://foundry.paradigm.xyz | bash || true
# export /home/circleci/.foundry/bin to PATH
export PATH=$PATH:/home/circleci/.foundry/bin
foundryup
mkdir foundry
cd foundry
ls -la .
forge init hello_foundry
ls -la hello_foundry
cd ..
# install truffle with yarn
yarn global add truffle
# install truffle metacoin box
mkdir MetaCoin
cd MetaCoin
truffle unbox metacoin
cd ..
# install hardhat
yarn global add hardhat
sleep 5
cd remix-project
yarn run build:e2e
echo "$TEST_EXITCODE"
if [ "$TEST_EXITCODE" -eq 1 ]
then
exit 1
fi
Loading…
Cancel
Save