File tree Expand file tree Collapse file tree 5 files changed +13
-77
lines changed
Expand file tree Collapse file tree 5 files changed +13
-77
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -130,4 +130,7 @@ yarn-error.log*
130130node_modules
131131frontend /node_modules
132132www /
133- * .db
133+ * .db
134+ .env.ci
135+ .env.dev
136+ .env.docker
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ services:
1111 - mysql
1212 - redis
1313
14- before_install :
15- - mysql -e 'CREATE DATABASE pymatcha;'
16-
1714# TODO: Reformat file as it is ugly. separatee jobs in yml, and lint as the last job to run
1815
1916jobs :
3330 - npm --version
3431 - npm install -g newman
3532 - newman --version
33+ - wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb
34+ - sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
35+ - sudo apt-get update -q
36+ - sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
37+ - sudo systemctl restart mysql
38+ - sudo mysql_upgrade
39+ - mysql --version
40+ - mysql -e 'CREATE DATABASE pymatcha;'
3641 script :
3742 # login to github registry
3843 - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
4146 # decrypt the env file
4247 - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
4348 # Run the backend api
44- - docker run -d -p 5000:5000 --restart always --env-file .env docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
49+ - docker run -d -p 5000:5000 --restart always --env-file .env --network="host" docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
4550 # Wait for docker to be up
4651 - sleep 10
4752 # run newman tests
You can’t perform that action at this time.
0 commit comments