forked from discourse/discourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.turbo_test.yml
91 lines (70 loc) · 2.6 KB
/
.turbo_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
env:
DISCOURSE_HOSTNAME: www.example.com
RUBY_GLOBAL_METHOD_CACHE_SIZE: 131072
install: |
# clear_cache: 00ebf7a132054dffdf3afec8d6b0555a
echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
sudo apt update -y
sudo apt install wget -y
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo add-apt-repository ppa:redislabs/redis -y
sudo apt update -y
sudo apt install -y \
software-properties-common build-essential \
gcc g++ make cmake unzip libffi-dev \
libcurl4-openssl-dev libssl-dev zlib1g-dev \
curl gnupg2 git \
postgresql-13 postgresql-client-13 postgresql-server-dev-13 libpq-dev libpq5 postgresql-contrib \
redis \
libnss3 xdg-utils jpegoptim optipng pngquant jhead
git clone --depth 1 https://github.com/SoftCreatR/imei
cd imei
sudo ./imei.sh --imagemagick-version 7.1.0-12
cd -
rm -Rf imei
sudo systemctl enable --now redis-server.service
sudo su postgres -c 'createuser ubuntu --superuser'
sudo service postgresql restart
bash <( wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh )
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use
nvm install 14.14
npm install -g yarn
echo "source ~/.bashrc" >> ~/.bash_profile
echo "source ~/.nvm/nvm.sh" >> ~/.bash_profile
echo "nvm use 14.14" >> ~/.bash_profile
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -sSL https://get.rvm.io | bash -s stable
source ~/.bash_profile
rvm install ruby-2.7.2
cp .ruby-version.sample .ruby-version
echo "gem: --no-document" >> ~/.gemrc
gem install bundler
git init .
git config user.name "turbotest"
git config user.email "[email protected]"
git commit --allow-empty -n --message "build"
bundle config --local path vendor/bundle
bundle config --local deployment true
bundle config --local without development
bundle install --jobs 4
bin/rails db:create
RAILS_ENV=test bin/rails db:migrate
yarn install --ignore-engines --frozen-lockfile
setup: |
yarn install --ignore-engines
bundle install --local --jobs 4
bin/rails db:migrate
test_suite:
command: bin/rspec --no-color
files:
- spec/**/*_spec.rb
ignore:
- spec/jobs/vacate_legacy_prefix_backups_spec.rb
- spec/factories/**/*.*
- spec/support/**/*.*
- spec/system/**/*.*
- spec/spec_helper.rb
- spec/tasks/**/*.*